This commit is contained in:
2020-02-13 20:50:53 +00:00
parent 5aacb87a93
commit 684f7be73d
7 changed files with 141 additions and 131 deletions

View File

@@ -63,14 +63,7 @@ namespace AyaNova.Api.Controllers
{
listOptions.Offset = 0;
}
//this is to workaround a quirk in the api explorer with default values
if(listOptions.SortJson=="string"){
listOptions.SortJson=string.Empty;
}
if(listOptions.FilterJson=="string"){
listOptions.FilterJson=string.Empty;
}
if (!ModelState.IsValid)
return BadRequest(new ApiErrorResponse(ModelState));