diff --git a/InternetShop/InternetShopContracts/DataBindingModels/OrderBindingModel.cs b/InternetShop/InternetShopContracts/DataBindingModels/OrderBindingModel.cs new file mode 100644 index 0000000..d194235 --- /dev/null +++ b/InternetShop/InternetShopContracts/DataBindingModels/OrderBindingModel.cs @@ -0,0 +1,13 @@ +using InternetShopDataModels.Models; + +namespace InternetShopContracts.DataBindingModels +{ + public class OrderBindingModel : 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/DataBindingModels/ProductBindingModel.cs b/InternetShop/InternetShopContracts/DataBindingModels/ProductBindingModel.cs new file mode 100644 index 0000000..6222630 --- /dev/null +++ b/InternetShop/InternetShopContracts/DataBindingModels/ProductBindingModel.cs @@ -0,0 +1,10 @@ +using InternetShopDataModels.Models; + +namespace InternetShopContracts.DataBindingModels +{ + public class ProductBindingModel : IProductModel + { + public string Name { get; set; } = string.Empty; + public int Id { get; set; } + } +} diff --git a/InternetShop/InternetShopContracts/InternetShopContracts.csproj b/InternetShop/InternetShopContracts/InternetShopContracts.csproj index fa71b7a..94ceabc 100644 --- a/InternetShop/InternetShopContracts/InternetShopContracts.csproj +++ b/InternetShop/InternetShopContracts/InternetShopContracts.csproj @@ -6,4 +6,8 @@ enable + + + +