private async Task <String> GetCommentsHtml(int itemId, string itemType, int page, string designName, int pageSize) { string returnHtml; var commentsTask = CommentService.GetCommentsByItemIdAsync(StoreId, itemId, itemType, page, pageSize); var pageDesignTask = PageDesignService.GetPageDesignByName(StoreId, designName); CommentHelper.StoreSettings = GetStoreSettings(); await Task.WhenAll(pageDesignTask, commentsTask); var pageDesign = pageDesignTask.Result; var comments = commentsTask.Result; var pageOuput = CommentHelper.GetCommentsPartial(comments, pageDesign); returnHtml = pageOuput.PageOutputText; return(returnHtml); }