This commit is contained in:
@@ -112,22 +112,22 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// Get Translations list
|
||||
// /// </summary>
|
||||
// /// <returns>List in alphabetical order of all Translations</returns>
|
||||
// [HttpGet("list")]
|
||||
// public async Task<IActionResult> TranslationList()
|
||||
// {
|
||||
// if (serverState.IsClosed)
|
||||
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
/// <summary>
|
||||
/// Get Translations list
|
||||
/// </summary>
|
||||
/// <returns>List in alphabetical order of all Translations</returns>
|
||||
[HttpGet("list")]
|
||||
public async Task<IActionResult> TranslationList()
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
|
||||
// //Instantiate the business object handler
|
||||
// TranslationBiz biz = TranslationBiz.GetBiz(ct, HttpContext);
|
||||
//Instantiate the business object handler
|
||||
TranslationBiz biz = TranslationBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
// var l = await biz.GetTranslationListAsync();
|
||||
// return Ok(ApiOkResponse.Response(l));
|
||||
// }
|
||||
var l = await biz.GetTranslationListAsync();
|
||||
return Ok(ApiOkResponse.Response(l));
|
||||
}
|
||||
|
||||
|
||||
#if (DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user