Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

903 B
Raw Blame
using Grand.Domain.Catalog;
using Grand.Web.AdminShared.Models.Catalog;

namespace Grand.Web.AdminShared.Interfaces;

public interface IProductReviewViewModelService
{
    Task PrepareProductReviewModel(ProductReviewModel model,
        ProductReview productReview, bool excludeProperties, bool formatReviewText);

    Task<(IEnumerable<ProductReviewModel> productReviewModels, int totalCount)> PrepareProductReviewsModel(
        ProductReviewListModel model, int pageIndex, int pageSize);

    Task<ProductReview> UpdateProductReview(ProductReview productReview, ProductReviewModel model);
    Task<ProductReviewListModel> PrepareProductReviewListModel(string storeId = "");
    Task DeleteProductReview(ProductReview productReview);
    Task ApproveSelected(IEnumerable<string> selectedIds, string storeId = "");
    Task DisapproveSelected(IEnumerable<string> selectedIds, string storeId = "");
}