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; }