Webiant Logo Webiant Logo
  1. No results found.

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

IMenuModelFactory.cs

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

namespace Nop.Web.Areas.Admin.Factories;

/// 
/// Represents the menu model factory
/// 
public partial interface IMenuModelFactory
{
    #region Menus

    /// 
    /// Prepare menu search model
    /// 
    /// Menu search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the menu search model
    /// 
    Task PrepareMenuSearchModelAsync(MenuSearchModel searchModel);

    /// 
    /// Prepare paged menu list model
    /// 
    /// Menu search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the menu list model
    /// 
    Task PrepareMenuListModelAsync(MenuSearchModel searchModel);

    /// 
    /// Prepare menu model
    /// 
    /// Menu model
    /// Menu
    /// Whether to exclude populating of some properties of model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the menu model
    /// 
    Task PrepareMenuModelAsync(MenuModel model, Menu menu, bool excludeProperties = false);

    #endregion

    #region Menu items

    /// 
    /// Prepare menu items search model
    /// 
    /// Menu item search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the menu item search model
    /// 
    Task PrepareMenuItemSearchModelAsync(MenuItemSearchModel searchModel);

    /// 
    /// Prepare paged menu item list model
    /// 
    /// Menu item search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the menu item list model
    /// 
    Task PrepareMenuItemListModelAsync(MenuItemSearchModel searchModel);

    /// 
    /// Prepare menu item model
    /// 
    /// Menu
    /// Menu item model
    /// Menu item
    /// Whether to exclude populating of some properties of model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the menu item model
    /// 
    Task PrepareMenuItemModelAsync(Menu menu, MenuItemModel model, MenuItem menuItem, bool excludeProperties = false);

    #region Products popup

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

    /// 
    /// Prepare product list model
    /// 
    /// Product search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the product list model
    /// 
    Task PrepareMenuItemSelectProductListModelAsync(SelectMenuItemProductSearchModel searchModel);

    #endregion

    #endregion
}