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