This commit is contained in:
@@ -75,11 +75,11 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get DataListView pick list
|
||||
/// Get DataListView list
|
||||
/// </summary>
|
||||
/// <returns>List of public or owned data list views listKey provided</returns>
|
||||
[HttpGet("PickList", Name = nameof(DataListViewPickList))]
|
||||
public async Task<IActionResult> DataListViewPickList([FromQuery] string ListKey)
|
||||
[HttpGet("ViewList", Name = nameof(DataListViewList))]
|
||||
public async Task<IActionResult> DataListViewList([FromQuery] string ListKey)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||
@@ -90,7 +90,7 @@ namespace AyaNova.Api.Controllers
|
||||
//Instantiate the business object handler
|
||||
DataListViewBiz biz = DataListViewBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
var l = await biz.GetPickListAsync(ListKey);
|
||||
var l = await biz.GetViewListAsync(ListKey);
|
||||
return Ok(ApiOkResponse.Response(l, true));
|
||||
|
||||
}
|
||||
|
||||
@@ -86,11 +86,11 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get Translation pick list
|
||||
/// Get Translations list
|
||||
/// </summary>
|
||||
/// <returns>Picklist in alphabetical order of all Translations</returns>
|
||||
[HttpGet("PickList")]
|
||||
public async Task<IActionResult> TranslationPickList()
|
||||
/// <returns>List in alphabetical order of all Translations</returns>
|
||||
[HttpGet("List")]
|
||||
public async Task<IActionResult> TranslationList()
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace AyaNova.Api.Controllers
|
||||
//Instantiate the business object handler
|
||||
TranslationBiz biz = TranslationBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
var l = await biz.GetPickListAsync();
|
||||
var l = await biz.GetTranslationListAsync();
|
||||
return Ok(ApiOkResponse.Response(l, true));
|
||||
}
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//get picklist (NOT PAGED)
|
||||
internal async Task<List<NameIdItem>> GetPickListAsync(string listKey)
|
||||
internal async Task<List<NameIdItem>> GetViewListAsync(string listKey)
|
||||
{
|
||||
List<NameIdItem> items = new List<NameIdItem>();
|
||||
if (!string.IsNullOrWhiteSpace(listKey))
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//get picklist (simple non-paged)
|
||||
internal async Task<List<NameIdItem>> GetPickListAsync()
|
||||
internal async Task<List<NameIdItem>> GetTranslationListAsync()
|
||||
{
|
||||
List<NameIdItem> l = new List<NameIdItem>();
|
||||
l = await ct.Translation
|
||||
|
||||
Reference in New Issue
Block a user