Webiant Logo Webiant Logo
  1. No results found.

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

ICategoryModelFactory.cs

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

namespace Nop.Web.Areas.Admin.Factories;

/// 
/// Represents the category model factory
/// 
public partial interface ICategoryModelFactory
{
    /// 
    /// Prepare category search model
    /// 
    /// Category search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the category search model
    /// 
    Task PrepareCategorySearchModelAsync(CategorySearchModel searchModel);

    /// 
    /// Prepare paged category list model
    /// 
    /// Category search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the category list model
    /// 
    Task PrepareCategoryListModelAsync(CategorySearchModel searchModel);

    /// 
    /// Prepare category model
    /// 
    /// Category model
    /// Category
    /// Whether to exclude populating of some properties of model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the category model
    /// 
    Task PrepareCategoryModelAsync(CategoryModel model, Category category, bool excludeProperties = false);

    /// 
    /// Prepare paged category product list model
    /// 
    /// Category product search model
    /// Category
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the category product list model
    /// 
    Task PrepareCategoryProductListModelAsync(CategoryProductSearchModel searchModel, Category category);

    /// 
    /// Prepare product search model to add to the category
    /// 
    /// Product search model to add to the category
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the product search model to add to the category
    /// 
    Task PrepareAddProductToCategorySearchModelAsync(AddProductToCategorySearchModel searchModel);

    /// 
    /// Prepare paged product list model to add to the category
    /// 
    /// Product search model to add to the category
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the product list model to add to the category
    /// 
    Task PrepareAddProductToCategoryListModelAsync(AddProductToCategorySearchModel searchModel);
}