This commit is contained in:
@@ -180,23 +180,15 @@ namespace AyaNova.Api.Controllers
|
||||
/// <summary>
|
||||
/// Get subset of translation values for specific translation Id
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="inObj">List of translation key strings</param>
|
||||
/// <returns>A key value array of translation text values</returns>
|
||||
[HttpPost("subset/{id}")]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> SubSet([FromRoute] long id, [FromBody] List<string> inObj)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
{
|
||||
//Exception for SuperUser account to handle licensing issues
|
||||
if (UserIdFromContext.Id(HttpContext.Items) != 1)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
}
|
||||
|
||||
//Instantiate the business object handler
|
||||
|
||||
//Instantiate the business object handler
|
||||
// TranslationBiz biz = TranslationBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
var l = await TranslationBiz.GetSubsetStaticAsync(inObj, id);
|
||||
return Ok(ApiOkResponse.Response(l));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user