This commit is contained in:
2020-03-12 23:16:19 +00:00
parent 883e10fcd7
commit b5a8179c42
5 changed files with 30 additions and 21 deletions

View File

@@ -82,9 +82,9 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <returns>List of strings</returns>
[HttpGet("TemplateList")]
public async Task<IActionResult> GetTemplateList()
public ActionResult GetTemplateList()
{
if (!serverState.IsOpen)
if (!serverState.IsOpen)
{
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
}
@@ -92,15 +92,15 @@ namespace AyaNova.Api.Controllers
//Instantiate the business object handler
PickListBiz biz = PickListBiz.GetBiz(ct, HttpContext);
var o = await biz.GetListOfAllPickListKeyNames();
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));
}