From 3e5221a9d176cc806398f8a2baa90d2d6c7397c8 Mon Sep 17 00:00:00 2001 From: sardq Date: Mon, 17 Jun 2024 21:27:15 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B5=D0=BA=D1=80=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlumbingRepairContracts/BindingModels/ShopBindingModel.cs | 4 ++-- .../PlumbingRepairContracts/ViewModels/ShopViewModel.cs | 4 ++-- PlumbingRepair/PlumbingRepairDataModels/Models/IShopModel.cs | 2 +- PlumbingRepair/PlumbingRepairDatabaseImplement/Models/Shop.cs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PlumbingRepair/PlumbingRepairContracts/BindingModels/ShopBindingModel.cs b/PlumbingRepair/PlumbingRepairContracts/BindingModels/ShopBindingModel.cs index 37d3ea7..670d0fd 100644 --- a/PlumbingRepair/PlumbingRepairContracts/BindingModels/ShopBindingModel.cs +++ b/PlumbingRepair/PlumbingRepairContracts/BindingModels/ShopBindingModel.cs @@ -8,8 +8,8 @@ using System.Threading.Tasks; namespace PlumbingRepairContracts.BindingModels { - public class ShopBindingModel - { + public class ShopBindingModel : IShopModel + { public int Id { get; set; } public string ShopName { get; set; } =string.Empty; diff --git a/PlumbingRepair/PlumbingRepairContracts/ViewModels/ShopViewModel.cs b/PlumbingRepair/PlumbingRepairContracts/ViewModels/ShopViewModel.cs index e19d1e0..3b819cd 100644 --- a/PlumbingRepair/PlumbingRepairContracts/ViewModels/ShopViewModel.cs +++ b/PlumbingRepair/PlumbingRepairContracts/ViewModels/ShopViewModel.cs @@ -4,8 +4,8 @@ using System.ComponentModel; namespace PlumbingRepairContracts.ViewModels { - public class ShopViewModel - { + public class ShopViewModel : IShopModel + { [Column(visible: false)] public int Id { get; set; } diff --git a/PlumbingRepair/PlumbingRepairDataModels/Models/IShopModel.cs b/PlumbingRepair/PlumbingRepairDataModels/Models/IShopModel.cs index 55197c1..a94b714 100644 --- a/PlumbingRepair/PlumbingRepairDataModels/Models/IShopModel.cs +++ b/PlumbingRepair/PlumbingRepairDataModels/Models/IShopModel.cs @@ -1,6 +1,6 @@ namespace PlumbingRepairDataModels.Models { - public class IShopModel + public interface IShopModel: IId { string ShopName { get; } diff --git a/PlumbingRepair/PlumbingRepairDatabaseImplement/Models/Shop.cs b/PlumbingRepair/PlumbingRepairDatabaseImplement/Models/Shop.cs index d6a3209..508258e 100644 --- a/PlumbingRepair/PlumbingRepairDatabaseImplement/Models/Shop.cs +++ b/PlumbingRepair/PlumbingRepairDatabaseImplement/Models/Shop.cs @@ -9,8 +9,8 @@ using System.Runtime.Serialization; namespace PlumbingRepairDatabaseImplement.Models { [DataContract] - public class Shop - { + public class Shop : IShopModel + { [DataMember] public int Id { get; set; }