27 lines
556 B
C#
27 lines
556 B
C#
using Core.Abstractions.Models;
|
|
using Core.DomainObjects;
|
|
using Core.DomainObjects.Documents;
|
|
|
|
namespace WeatherForecast.Models.Requests {
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class PostShopCartItemRequestModel : RequestModelBase<ShopCartItem> {
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public uint Quantity { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public override ShopCartItem ToDomainObject() => new() {
|
|
Quantity = Quantity,
|
|
Created = DateTime.UtcNow
|
|
};
|
|
}
|
|
}
|