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; }