This commit is contained in:
@@ -26,6 +26,9 @@ namespace AyaNova.Api.ControllerHelpers
|
|||||||
[FromQuery]
|
[FromQuery]
|
||||||
public bool Mini { get; set; }
|
public bool Mini { get; set; }
|
||||||
|
|
||||||
|
[FromQuery, Required]
|
||||||
|
public string DataListKey { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ using AyaNova.Api.ControllerHelpers;
|
|||||||
using AyaNova.Biz;
|
using AyaNova.Biz;
|
||||||
using AyaNova.DataList;
|
using AyaNova.DataList;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace AyaNova.Api.Controllers
|
namespace AyaNova.Api.Controllers
|
||||||
{
|
{
|
||||||
@@ -63,15 +64,14 @@ namespace AyaNova.Api.Controllers
|
|||||||
}
|
}
|
||||||
";
|
";
|
||||||
|
|
||||||
long UserId = UserIdFromContext.Id(HttpContext.Items);
|
long UserId = UserIdFromContext.Id(HttpContext.Items);
|
||||||
ApiPagedResponse pr = await DataListFetcher.GetResponse(nameof(WidgetDataList), ct, Url, nameof(List), listOptions, MOCK_WIDGET_DISPLAY_TEMPLATE_JSON, UserId);
|
ApiPagedResponse pr = await DataListFetcher.GetResponse(listOptions.DataListKey, ct, Url, nameof(List), listOptions, MOCK_WIDGET_DISPLAY_TEMPLATE_JSON, UserId);
|
||||||
|
|
||||||
|
|
||||||
// ApiPagedResponse pr = biz.GetList(Url, nameof(List), listOptions).Result;
|
|
||||||
return Ok(new ApiOkWithPagingResponse(pr));
|
return Ok(new ApiOkWithPagingResponse(pr));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// List of all DataList keys available
|
/// List of all DataList keys available
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user