diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs new file mode 100644 index 0000000..8bd95b2 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs @@ -0,0 +1,15 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; + +namespace FurnitureContracts.BusinessLogicsContracts +{ + public class IOrdersLogic + { + List? ReadList(OrderSearchModel? model); + OrdersViewModel? ReadElement(OrderSearchModel model); + bool Create(OrdersBindingModel model); + bool Update(OrdersBindingModel model); + bool Delete(OrdersBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/HeadsetViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/HeadsetViewModel.cs index 428c441..6b8ef44 100644 --- a/FurnitureFactory/FurnitureContracts/ViewModel/HeadsetViewModel.cs +++ b/FurnitureFactory/FurnitureContracts/ViewModel/HeadsetViewModel.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.ViewModel { - public class HeadsetViewModel + public class HeadsetViewModel : IHeadsetModel { public int Cost { get; set; } diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/OrdersViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/OrdersViewModel.cs index d6effc5..c1f0e4e 100644 --- a/FurnitureFactory/FurnitureContracts/ViewModel/OrdersViewModel.cs +++ b/FurnitureFactory/FurnitureContracts/ViewModel/OrdersViewModel.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.ViewModel { - public class OrdersViewModel + public class OrdersViewModel : IOrdersModel { [DisplayName("Дата заказа")] public DateTime Date { get; set; } diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/RoleViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/RoleViewModel.cs index e768e60..faed6b1 100644 --- a/FurnitureFactory/FurnitureContracts/ViewModel/RoleViewModel.cs +++ b/FurnitureFactory/FurnitureContracts/ViewModel/RoleViewModel.cs @@ -3,7 +3,7 @@ using System.ComponentModel; namespace FurnitureContracts.ViewModel { - public class RoleViewModel + public class RoleViewModel : IRoleModel { [DisplayName("Название роли")] public string Name { get; set; } = string.Empty; diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs index 9f45f70..e2f0189 100644 --- a/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs +++ b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs @@ -3,7 +3,7 @@ using System.ComponentModel; namespace FurnitureContracts.ViewModel { - public class SalesSalonsViewModel + public class SalesSalonsViewModel : ISalesSalonsModel { [DisplayName("Название")] public string Name { get; set; } = string.Empty;