15 lines
405 B
C#
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
|
|
};
|
|
}
|
|
}
|