From fadc72399fb8f381d6b82cfa946836755f64daf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9F=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=D0=BF=D0=BE=D0=B2?= Date: Tue, 19 Nov 2024 21:40:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B1=D0=B8=D0=BD=D0=B4=D0=B8=D0=BD=D0=B3=20=D0=BC=D0=BE=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataBindingModels/OrderBindingModel.cs | 13 +++++++++++++ .../DataBindingModels/ProductBindingModel.cs | 10 ++++++++++ .../InternetShopContracts.csproj | 4 ++++ 3 files changed, 27 insertions(+) create mode 100644 InternetShop/InternetShopContracts/DataBindingModels/OrderBindingModel.cs create mode 100644 InternetShop/InternetShopContracts/DataBindingModels/ProductBindingModel.cs 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 + + + +