This commit is contained in:
@@ -70,7 +70,7 @@ namespace AyaNova.Api.Controllers
|
||||
Enum.GetName(t, AyaDataType.NoType);
|
||||
foreach (var dt in Enum.GetValues(t))
|
||||
{
|
||||
ReturnList.Add(new NameIdItem() { Name = Enum.GetName(t, dt), Id = (long) dt });
|
||||
ReturnList.Add(new NameIdItem() { Name = Enum.GetName(t, dt), Id = (int) dt });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -104,10 +104,10 @@ namespace AyaNova.Api.Controllers
|
||||
//Instantiate the business object handler
|
||||
WidgetBiz biz = WidgetBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
// ApiPagedResponse<NameIdItem> pr = biz.GetList(Url, nameof(WidgetList), pagingOptions);
|
||||
// return Ok(new ApiOkWithPagingResponse<NameIdItem>(pr));
|
||||
string ret= biz.GetList(Url, nameof(List), pagingOptions).Result;
|
||||
return Ok(ret);
|
||||
ApiPagedResponse pr = biz.GetList(Url, nameof(List), pagingOptions).Result;
|
||||
return Ok(new ApiOkWithPagingResponse(pr));
|
||||
// string ret= biz.GetList(Url, nameof(List), pagingOptions).Result;
|
||||
// return Ok(ret);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user