This commit is contained in:
2020-01-20 19:07:08 +00:00
parent c89a7bf681
commit 1cc30dbb67

View File

@@ -512,24 +512,6 @@ namespace AyaNova.Biz
}
}
//TODO: Build the return object in a clean format
//I could just use a actual object class to return (object v {get;set;})
//with a optional ID that is set to json not serialize if null?
//rows:{[ {},{v:"Green mechanics",id:32},{v:"...notes..."},{v:"42",id:42}, ...thousands more etc.... ]}
//If mini format all desired columns in order into the single mini return display (and set the only other return field which is ID)
//If wide then format the fields in order chosen (grid sort and filter template has already done that part above)
//TODO: Genericize the above block of building return when it's working as this code needs to be central and optimized as much as possible
//BUILD THE PAGING LINKS PORTION
var pageLinks = new PaginationLinkBuilder(Url, routeName, null, listOptions, totalRecordCount).PagingLinksObject();
@@ -545,7 +527,7 @@ namespace AyaNova.Biz
}
ApiPagedResponse pr = new ApiPagedResponse(items, pageLinks, ColumnsJSON);
ApiPagedResponse pr = new ApiPagedResponse(rows, pageLinks, ColumnsJSON);
return pr;
}
#endregion