reactredux/webapi/WeatherForecast/Models/Requests/PostShopCartItemRequestModel.cs

15 lines
405 B
C#

using Core.Abstractions.Models;
using Core.DomainObjects;
using Core.DomainObjects.Documents;
namespace WeatherForecast.Models.Requests {
public class PostShopCartItemRequestModel : RequestModelBase<ShopCartItem> {
public uint Quantity { get; set; }
public override ShopCartItem ToDomainObject() => new ShopCartItem {
Quantity = Quantity,
Created = DateTime.UtcNow
};
}
}