Webiant Logo Webiant Logo
  1. No results found.

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

IStateProvinceService.cs

using Nop.Core.Domain.Common;
using Nop.Core.Domain.Directory;

namespace Nop.Services.Directory;

/// 
/// State province service interface
/// 
public partial interface IStateProvinceService
{
    /// 
    /// Deletes a state/province
    /// 
    /// The state/province
    /// A task that represents the asynchronous operation
    Task DeleteStateProvinceAsync(StateProvince stateProvince);

    /// 
    /// Gets a state/province
    /// 
    /// The state/province identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the state/province
    /// 
    Task GetStateProvinceByIdAsync(int stateProvinceId);

    /// 
    /// Gets a state/province by abbreviation
    /// 
    /// The state/province abbreviation
    /// Country identifier; pass null to load the state regardless of a country
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the state/province
    /// 
    Task GetStateProvinceByAbbreviationAsync(string abbreviation, int? countryId = null);

    /// 
    /// Gets a state/province by address 
    /// 
    /// Address
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country
    /// 
    Task GetStateProvinceByAddressAsync(Address address);

    /// 
    /// Gets a state/province collection by country identifier
    /// 
    /// Country identifier
    /// Language identifier. It's used to sort states by localized names (if specified); pass 0 to skip it
    /// A value indicating whether to show hidden records
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the states
    /// 
    Task> GetStateProvincesByCountryIdAsync(int countryId, int languageId = 0, bool showHidden = false);

    /// 
    /// Gets all states/provinces
    /// 
    /// A value indicating whether to show hidden records
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the states
    /// 
    Task> GetStateProvincesAsync(bool showHidden = false);

    /// 
    /// Inserts a state/province
    /// 
    /// State/province
    /// A task that represents the asynchronous operation
    Task InsertStateProvinceAsync(StateProvince stateProvince);

    /// 
    /// Updates a state/province
    /// 
    /// State/province
    /// A task that represents the asynchronous operation
    Task UpdateStateProvinceAsync(StateProvince stateProvince);
}