This commit is contained in:
2020-01-15 19:14:35 +00:00
parent 05e07c5ac1
commit 2ae3837559
5 changed files with 46 additions and 15 deletions

View File

@@ -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 });
}
}

View File

@@ -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);
}