Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

731 B
Raw Blame
using Grand.Domain.Catalog;
using Grand.Infrastructure.Models;

namespace Grand.Web.Models.Customer;

public class CustomerAttributeModel : BaseEntityModel
{
    public string Name { get; set; }

    public bool IsRequired { get; set; }

    public bool IsReadOnly { get; set; }

    /// <summary>
    ///     Default value for textboxes
    /// </summary>
    public string DefaultValue { get; set; }

    public AttributeControlType AttributeControlType { get; set; }

    public IList<CustomerAttributeValueModel> Values { get; set; } = new List<CustomerAttributeValueModel>();
}

public class CustomerAttributeValueModel : BaseEntityModel
{
    public string Name { get; set; }

    public bool IsPreSelected { get; set; }
}