From 1cc30dbb676760ea0d7827e8e044333fd7a4b031 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 20 Jan 2020 19:07:08 +0000 Subject: [PATCH] --- server/AyaNova/biz/WidgetBiz.cs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/server/AyaNova/biz/WidgetBiz.cs b/server/AyaNova/biz/WidgetBiz.cs index fd535b49..1a642d14 100644 --- a/server/AyaNova/biz/WidgetBiz.cs +++ b/server/AyaNova/biz/WidgetBiz.cs @@ -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