public async Task <IActionResult> ReviewList(string customerId, DataSourceRequest command) { var productReviews = await _productService.GetAllProductReviews(customerId, null, null, null, "", null, "", command.Page - 1, command.PageSize); var items = new List <ProductReviewModel>(); foreach (var x in productReviews) { var m = new ProductReviewModel(); await _productViewModelService.PrepareProductReviewModel(m, x, false, true); items.Add(m); } var gridModel = new DataSourceResult { Data = items, Total = productReviews.TotalCount, }; return(Json(gridModel)); }