diff --git a/InternetShop/InternetShopContracts/DataViewModels/OrderViewModel.cs b/InternetShop/InternetShopContracts/DataViewModels/OrderViewModel.cs new file mode 100644 index 0000000..9920364 --- /dev/null +++ b/InternetShop/InternetShopContracts/DataViewModels/OrderViewModel.cs @@ -0,0 +1,14 @@ +using InternetShopDataModels.Models; +using System.ComponentModel; + +namespace InternetShopContracts.DataViewModels +{ + public class OrderViewModel : IOrderModel + { + public string CustomerFIO { get; set; } = string.Empty; + public string CustomerEmail { get; set; } = string.Empty; + public string ImagePath { get; set; } = string.Empty; + public List ProductNames { get; set; } = new List(); + public int Id { get; set; } + } +} diff --git a/InternetShop/InternetShopContracts/DataViewModels/ProductViewModel.cs b/InternetShop/InternetShopContracts/DataViewModels/ProductViewModel.cs new file mode 100644 index 0000000..08d9d8b --- /dev/null +++ b/InternetShop/InternetShopContracts/DataViewModels/ProductViewModel.cs @@ -0,0 +1,10 @@ +using InternetShopDataModels.Models; + +namespace InternetShopContracts.DataViewModels +{ + public class ProductViewModel : IProductModel + { + public string Name { get; set; } = string.Empty; + public int Id { get; set; } + } +}