namespace BuyMe.ServiceAPI.Models
{
public class ShopItemDTO
{
public string? Title { get; set; }
public float Rating { get; set; }
public int Price { get; set; }
public int Id { get; set; }
public bool IsOnSale { get; set; }
public ShopItemDTO() { }
//ShopItem is unique to the ServiceAPI
//it has the GUID of the seller that we dont want to share
public ShopItemDTO(ShopItem ShopItem) =>
(Title, Rating, Price, Id, IsOnSale) = (ShopItem.Title, ShopItem.Rating, ShopItem.Price, ShopItem.Id, ShopItem.IsOnSale);
}
}
namespace BuyMe.ServiceAPI.Models
{
public class ShopItemDTO
{
public string? Title { get; set; }
public float Rating { get; set; }
public int Price { get; set; }
public int Id { get; set; }
public bool IsOnSale { get; set; }
public ShopItemDTO() { }
//ShopItem is unique to the ServiceAPI
//it has the GUID of the seller that we dont want to share
public ShopItemDTO(ShopItem ShopItem) =>
(Title, Rating, Price, Id, IsOnSale) = (ShopItem.Title, ShopItem.Rating, ShopItem.Price, ShopItem.Id, ShopItem.IsOnSale);
}
}