reactredux/webapi/WeatherForecast/Models/ShopCartModel.cs

34 lines
981 B
C#

using Core.Abstractions.Models;
using Core.DomainObjects.Documents;
namespace WeatherForecast.Models {
public class ShopCartModel : ModelBase {
public string Slug { get; set; }
public string Sku { get; set; }
public ImageModel Image { get; set; }
public string Title { get; set; }
public string BrandName { get; set; }
public string ShortText { get; set; }
public DateTime Created { get; set; }
public double Price { get; set; }
public double NewPrice { get; set; }
public uint Quantity { get; set; }
public ShopCartModel() { }
public ShopCartModel(ShopCart shopCart) {
Slug = shopCart.Slug;
Sku = shopCart.Sku;
Image = new ImageModel(shopCart.Image);
Title = shopCart.Title;
BrandName = shopCart.BrandName;
ShortText = shopCart.ShortText;
Created = shopCart.Created;
Price = shopCart.Price;
NewPrice = shopCart.NewPrice;
Quantity = shopCart.Quantity;
}
}
}