This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user