Webiant Logo Webiant Logo
  1. No results found.

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

ICountryModelFactory.cs

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

namespace Nop.Web.Areas.Admin.Factories;

/// 
/// Represents the country model factory
/// 
public partial interface ICountryModelFactory
{
    /// 
    /// Prepare country search model
    /// 
    /// Country search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country search model
    /// 
    Task PrepareCountrySearchModelAsync(CountrySearchModel searchModel);

    /// 
    /// Prepare paged country list model
    /// 
    /// Country search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country list model
    /// 
    Task PrepareCountryListModelAsync(CountrySearchModel searchModel);

    /// 
    /// Prepare country model
    /// 
    /// Country model
    /// Country
    /// Whether to exclude populating of some properties of model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country model
    /// 
    Task PrepareCountryModelAsync(CountryModel model, Country country, bool excludeProperties = false);

    /// 
    /// Prepare paged state and province list model
    /// 
    /// State and province search model
    /// Country
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the state and province list model
    /// 
    Task PrepareStateProvinceListModelAsync(StateProvinceSearchModel searchModel, Country country);

    /// 
    /// Prepare state and province model
    /// 
    /// State and province model
    /// Country
    /// State or province
    /// Whether to exclude populating of some properties of model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the state and province model
    /// 
    Task PrepareStateProvinceModelAsync(StateProvinceModel model,
        Country country, StateProvince state, bool excludeProperties = false);
}