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.

763 B
Raw Blame
using Grand.Infrastructure.Validators;
using Grand.Module.Api.Models;

namespace Grand.Module.Api.DTOs.Catalog;

public class ProductAttributeDto : BaseApiEntityModel
{
    public string Name { get; set; }
    [SanitizeHtml]
    public string Description { get; set; }

    public IList<PredefinedProductAttributeValueDto> PredefinedProductAttributeValues { get; set; } =
        new List<PredefinedProductAttributeValueDto>();
}

public class PredefinedProductAttributeValueDto : BaseApiEntityModel
{
    public string Name { get; set; }
    public double PriceAdjustment { get; set; }
    public double WeightAdjustment { get; set; }
    public double Cost { get; set; }
    public bool IsPreSelected { get; set; }
    public int DisplayOrder { get; set; }
}