using Core.Abstractions.Models; using Core.DomainObjects.Documents; namespace WeatherForecast.Models.Responses { public class GetShopCartItemResponseModel : ResponseModelBase { 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 GetShopCartItemResponseModel() { } public GetShopCartItemResponseModel(ShopCartItem shopCartItem) { Slug = shopCartItem.Slug; Sku = shopCartItem.Sku; Image = new ImageModel(shopCartItem.Image); Title = shopCartItem.Title; BrandName = shopCartItem.BrandName; ShortText = shopCartItem.ShortText; Created = shopCartItem.Created; Price = shopCartItem.Price; NewPrice = shopCartItem.NewPrice; Quantity = shopCartItem.Quantity; } } }