This commit is contained in:
@@ -47,9 +47,10 @@ 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>
|
||||
/// <param name="inactive">Include inactive objects in the returned list</param>
|
||||
/// <returns>Filtered list</returns>
|
||||
[HttpGet("List")]
|
||||
public async Task<IActionResult> GetList([FromQuery]AyaType ayaType, [FromQuery]string query)
|
||||
public async Task<IActionResult> GetList([FromQuery]AyaType ayaType, [FromQuery]string query, [FromQuery] bool inactive)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
{
|
||||
@@ -68,7 +69,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
var UserRoles = UserRolesFromContext.Roles(HttpContext.Items);
|
||||
|
||||
var o = await biz.GetPickListAsync(ayaType, query, UserRoles);
|
||||
var o = await biz.GetPickListAsync(ayaType, query, inactive, UserRoles);
|
||||
if (o == null)
|
||||
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
|
||||
|
||||
@@ -96,7 +97,7 @@ namespace AyaNova.Api.Controllers
|
||||
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