Webiant Logo Webiant Logo
  1. No results found.

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

IAclSupportedModelFactory.cs

using Nop.Web.Framework.Models;

namespace Nop.Web.Areas.Admin.Factories;

/// 
/// Represents the model factory which supports access control list (ACL)
/// 
public partial interface IAclSupportedModelFactory
{
    /// 
    /// Prepare selected and all available customer roles for the passed model
    /// 
    /// ACL supported model type
    /// Model
    /// A task that represents the asynchronous operation
    Task PrepareModelCustomerRolesAsync(TModel model) where TModel : IAclSupportedModel;

    /// 
    /// Prepare selected and all available customer roles for the passed model by ACL mappings
    /// 
    /// ACL supported model type
    /// Model
    /// Entity name
    /// A task that represents the asynchronous operation
    Task PrepareModelCustomerRolesAsync(TModel model, string entityName)
        where TModel : BaseNopEntityModel, IAclSupportedModel;
}