This commit is contained in:
@@ -196,7 +196,12 @@ namespace AyaNova.Biz
|
||||
.ToArrayAsync();
|
||||
|
||||
|
||||
var totalRecordCount = await ct.Widget.CountAsync();
|
||||
// var totalRecordCount = await ct.Widget.CountAsync();
|
||||
var totalRecordCount = await ct.Widget
|
||||
.AsNoTracking()
|
||||
.FromSql(q)
|
||||
.CountAsync();
|
||||
|
||||
var pageLinks = new PaginationLinkBuilder(Url, routeName, null, pagingOptions, totalRecordCount).PagingLinksObject();
|
||||
|
||||
ApiPagedResponse<Widget> pr = new ApiPagedResponse<Widget>(items, pageLinks);
|
||||
|
||||
Reference in New Issue
Block a user