public StoreLiquidResult GetLocationIndexPage(PageDesign pageDesign, List <Location> locations) { var result = new StoreLiquidResult(); var dic = new Dictionary <String, String>(); result.LiquidRenderedResult = dic; result.PageDesingName = pageDesign.Name; dic.Add(StoreConstants.PageOutput, ""); try { if (pageDesign == null) { throw new Exception("PageDesing is null"); } var items = new List <LocationLiquid>(); foreach (var item in locations) { var i = new LocationLiquid(item, ImageWidth, ImageHeight); items.Add(i); } object anonymousObject = new { locations = LiquidAnonymousObject.GetLocationsEnumerable(items) }; var indexPageOutput = LiquidEngineHelper.RenderPage(pageDesign, anonymousObject); dic[StoreConstants.PageOutput] = indexPageOutput; } catch (Exception ex) { Logger.Error(ex); } return(result); }