Webiant Logo Webiant Logo
  1. No results found.

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

StateProvinceModel.cs

using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Directory;

/// 
/// Represents a state and province model
/// 
public partial record StateProvinceModel : BaseNopEntityModel, ILocalizedModel
{
    #region Ctor

    public StateProvinceModel()
    {
        Locales = new List();
    }

    #endregion

    #region Properties

    public int CountryId { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Countries.States.Fields.Name")]
    public string Name { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Countries.States.Fields.Abbreviation")]
    public string Abbreviation { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Countries.States.Fields.Published")]
    public bool Published { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Countries.States.Fields.DisplayOrder")]
    public int DisplayOrder { get; set; }

    public IList Locales { get; set; }

    #endregion
}

public partial record StateProvinceLocalizedModel : ILocalizedLocaleModel
{
    public int LanguageId { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Countries.States.Fields.Name")]
    public string Name { get; set; }
}