public StoreLiquidResult GetPhotoGalleryIndexPage(PageDesign pageDesign, StorePagedList <FileManager> fileManagers) { var cats = new List <FileManagerLiquid>(); foreach (var item in fileManagers.items) { cats.Add(new FileManagerLiquid(item, ImageWidth, ImageHeight)); } object anonymousObject = new { photogalleries = LiquidAnonymousObject.GetFileManagerLiquidEnumerable(cats) }; var indexPageOutput = LiquidEngineHelper.RenderPage(pageDesign, anonymousObject); var dic = new Dictionary <String, String>(); dic.Add(StoreConstants.PageOutput, indexPageOutput); dic.Add(StoreConstants.PageSize, fileManagers.pageSize.ToStr()); dic.Add(StoreConstants.PageNumber, fileManagers.page.ToStr()); dic.Add(StoreConstants.TotalItemCount, fileManagers.totalItemCount.ToStr()); var result = new StoreLiquidResult(); result.LiquidRenderedResult = dic; result.PageDesingName = pageDesign.Name; return(result); }