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