Webiant Logo Webiant Logo
  1. No results found.

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

AddressAttributeModel.cs

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

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

/// 
/// Represents an address attribute model
/// 
public partial record AddressAttributeModel : BaseNopEntityModel, ILocalizedModel
{
    #region Ctor

    public AddressAttributeModel()
    {
        Locales = new List();
        AddressAttributeValueSearchModel = new AddressAttributeValueSearchModel();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Address.AddressAttributes.Fields.Name")]
    public string Name { get; set; }

    [NopResourceDisplayName("Admin.Address.AddressAttributes.Fields.IsRequired")]
    public bool IsRequired { get; set; }

    [NopResourceDisplayName("Admin.Address.AddressAttributes.Fields.AttributeControlType")]
    public int AttributeControlTypeId { get; set; }

    [NopResourceDisplayName("Admin.Address.AddressAttributes.Fields.AttributeControlType")]
    public string AttributeControlTypeName { get; set; }

    [NopResourceDisplayName("Admin.Address.AddressAttributes.Fields.DisplayOrder")]
    public int DisplayOrder { get; set; }

    public IList Locales { get; set; }

    public AddressAttributeValueSearchModel AddressAttributeValueSearchModel { get; set; }

    #endregion
}

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

    [NopResourceDisplayName("Admin.Address.AddressAttributes.Fields.Name")]
    public string Name { get; set; }
}