Webiant Logo Webiant Logo
  1. No results found.

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

ICountryModelFactory.cs

using Nop.Web.Models.Directory;

namespace Nop.Web.Factories;

/// <summary>
/// Represents the interface of the country model factory
/// </summary>
public partial interface ICountryModelFactory
{
    /// <summary>
    /// Get states and provinces by country identifier
    /// </summary>
    /// <param name="countryId">Country identifier</param>
    /// <param name="addSelectStateItem">Whether to add "Select state" item to list of states</param>
    /// <returns>
    /// A task that represents the asynchronous operation
    /// The task result contains the list of identifiers and names of states and provinces
    /// </returns>
    Task<IList<StateProvinceModel>> GetStatesByCountryIdAsync(int countryId, bool addSelectStateItem);
}