Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IProductReviewModelFactory.cs

using Nop.Core.Domain.Catalog;
using Nop.Web.Areas.Admin.Models.Catalog;

namespace Nop.Web.Areas.Admin.Factories;

/// 
/// Represents the product review model factory
/// 
public partial interface IProductReviewModelFactory
{
    #region ProducrReview

    /// 
    /// Prepare product review search model
    /// 
    /// Product review search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the product review search model
    /// 
    Task PrepareProductReviewSearchModelAsync(ProductReviewSearchModel searchModel);

    /// 
    /// Prepare paged product review list model
    /// 
    /// Product review search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the product review list model
    /// 
    Task PrepareProductReviewListModelAsync(ProductReviewSearchModel searchModel);

    /// 
    /// Prepare product review model
    /// 
    /// Product review model
    /// Product review
    /// Whether to exclude populating of some properties of model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the product review model
    /// 
    Task PrepareProductReviewModelAsync(ProductReviewModel model,
        ProductReview productReview, bool excludeProperties = false);

    #endregion

    #region ProductReviewReveiwTypeMapping

    /// 
    /// Prepare paged product reviews mapping list model
    /// 
    /// Product review and review type mapping search model
    /// Product review
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the product review and review type mapping list model
    /// 
    Task PrepareProductReviewReviewTypeMappingListModelAsync(ProductReviewReviewTypeMappingSearchModel searchModel,
        ProductReview productReview);

    #endregion
}