diff --git a/LaaProductionWeb/LaaProduction.Search/LaaProduction.Search.csproj b/LaaProductionWeb/LaaProduction.Search/LaaProduction.Search.csproj index 70e287ab..99a60b75 100644 --- a/LaaProductionWeb/LaaProduction.Search/LaaProduction.Search.csproj +++ b/LaaProductionWeb/LaaProduction.Search/LaaProduction.Search.csproj @@ -77,6 +77,7 @@ + \ No newline at end of file diff --git a/LaaProductionWeb/LaaProduction.Search/README.md b/LaaProductionWeb/LaaProduction.Search/README.md new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/LaaProductionWeb/LaaProduction.Search/README.md @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/LaaProductionWeb/LaaProductionWeb/App_Infrastructure/HttpResults.cs b/LaaProductionWeb/LaaProductionWeb/App_Infrastructure/HttpResults.cs deleted file mode 100644 index 1d9c5222..00000000 --- a/LaaProductionWeb/LaaProductionWeb/App_Infrastructure/HttpResults.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace LaaProductionWeb.App_Infrastructure -{ - using System.Collections.Generic; - using System.Linq; - - using WebAPIModelState = System.Web.Http.ModelBinding.ModelStateDictionary; - - - public class HttpErrorModel : Dictionary - { - private HttpErrorModel() - { - - } - - public static implicit operator HttpErrorModel(WebAPIModelState modelStateDictionary) - { - var badRequestErrors = new HttpErrorModel(); - - foreach (var kvp in modelStateDictionary) - { - var errorKey = kvp.Key ?? string.Empty; - var errorValue = kvp.Value.Errors?.FirstOrDefault()?.ErrorMessage; - - if (errorKey is null || errorValue is null) - { - continue; - } - - badRequestErrors[errorKey] = errorValue; - } - - return badRequestErrors; - } - } -} \ No newline at end of file