This commit is contained in:
@@ -47,7 +47,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="ayaType">The AyaType object type to select from</param>
|
||||
/// <param name="query">The query to filter the returned list by</param>
|
||||
/// <returns>Filtered list (maximum 25 items are returned for any query)</returns>
|
||||
/// <returns>Filtered list</returns>
|
||||
[HttpGet("List")]
|
||||
public async Task<IActionResult> GetList([FromQuery]AyaType ayaType, [FromQuery]string query)
|
||||
{
|
||||
@@ -92,13 +92,11 @@ namespace AyaNova.Api.Controllers
|
||||
//Instantiate the business object handler
|
||||
PickListBiz biz = PickListBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
|
||||
long TranslationId = UserTranslationIdFromContext.Id(HttpContext.Items);
|
||||
var o = biz.GetListOfAllPickListTypes(TranslationId);
|
||||
if (o == null)
|
||||
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
|
||||
|
||||
|
||||
|
||||
return Ok(ApiOkResponse.Response(o, true));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user