Webiant Logo Webiant Logo
  1. No results found.

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

VendorAttributeModel.cs

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

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

/// 
/// Represents a vendor attribute model
/// 
public partial record VendorAttributeModel : BaseNopEntityModel, ILocalizedModel
{
    #region Ctor

    public VendorAttributeModel()
    {
        Locales = new List();
        VendorAttributeValueSearchModel = new VendorAttributeValueSearchModel();
    }

    #endregion

    #region Properties

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

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

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

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

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

    public IList Locales { get; set; }

    public VendorAttributeValueSearchModel VendorAttributeValueSearchModel { get; set; }

    #endregion
}

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

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