From 844d2d770b5b140c1dfd2ca8e336ac835a4c5d3f 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:09:33 +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=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D1=8B=20?= =?UTF-8?q?=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B5=D0=B9=20=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- InternetShop/InternetShopDataModels/IId.cs | 7 +++++++ .../InternetShopDataModels/Models/IOrderModel.cs | 10 ++++++++++ .../InternetShopDataModels/Models/IProductModel.cs | 7 +++++++ 3 files changed, 24 insertions(+) create mode 100644 InternetShop/InternetShopDataModels/IId.cs create mode 100644 InternetShop/InternetShopDataModels/Models/IOrderModel.cs create mode 100644 InternetShop/InternetShopDataModels/Models/IProductModel.cs diff --git a/InternetShop/InternetShopDataModels/IId.cs b/InternetShop/InternetShopDataModels/IId.cs new file mode 100644 index 0000000..95e9406 --- /dev/null +++ b/InternetShop/InternetShopDataModels/IId.cs @@ -0,0 +1,7 @@ +namespace InternetShopDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/InternetShop/InternetShopDataModels/Models/IOrderModel.cs b/InternetShop/InternetShopDataModels/Models/IOrderModel.cs new file mode 100644 index 0000000..1c0645c --- /dev/null +++ b/InternetShop/InternetShopDataModels/Models/IOrderModel.cs @@ -0,0 +1,10 @@ +namespace InternetShopDataModels.Models +{ + public interface IOrderModel : IId + { + string CustomerFIO { get; } + string CustomerEmail { get; } + string ImagePath { get; } + List Products { get; } + } +} diff --git a/InternetShop/InternetShopDataModels/Models/IProductModel.cs b/InternetShop/InternetShopDataModels/Models/IProductModel.cs new file mode 100644 index 0000000..161eb69 --- /dev/null +++ b/InternetShop/InternetShopDataModels/Models/IProductModel.cs @@ -0,0 +1,7 @@ +namespace InternetShopDataModels.Models +{ + public interface IProductModel : IId + { + string Name { get; } + } +}