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.

667 B
Raw Blame
using Grand.Web.Common.Binders;
using Grand.Web.Common.Models;
using Microsoft.AspNetCore.Mvc;

namespace Grand.Web.AdminShared.Models.Orders;

public record AddProductToOrderModel(
    string OrderId,
    string ProductId,
    double UnitPriceInclTax,
    double UnitPriceExclTax,
    int Quantity,
    int TaxRate)
{
    public GiftvoucherModel Giftvoucher { get; set; }

    [ModelBinder(BinderType = typeof(CustomAttributesBinder))]
    public IList<CustomAttributeModel> SelectedAttributes { get; set; }
}

public record GiftvoucherModel(
    string RecipientName,
    string RecipientEmail,
    string SenderName,
    string SenderEmail,
    string Message);