diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs new file mode 100644 index 0000000..49f3039 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IComponentLogic + { + List? ReadList(ComponentSearchModel? model); + ComponentViewModel? ReadElement(ComponentSearchModel model); + bool Create(ComponentBindingModel model); + bool Update(ComponentBindingModel model); + bool Delete(ComponentBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs new file mode 100644 index 0000000..fc0dc8e --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IOrderLogic + { + List? ReadList(OrderSearchModel? model); + bool CreateOrder(OrderBindingModel model); + bool TakeOrderInWork(OrderBindingModel model); + bool FinishOrder(OrderBindingModel model); + bool DeliveryOrder(OrderBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs new file mode 100644 index 0000000..59f4cdd --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IProductLogic + { + List? ReadList(ProductSearchModel? model); + ProductViewModel? ReadElement(ProductSearchModel model); + bool Create(ProductBindingModel model); + bool Update(ProductBindingModel model); + bool Delete(ProductBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs new file mode 100644 index 0000000..b7a2fc0 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IStoreKeeperLogic + { + List? ReadList(StoreKeeperSearchModel? model); + StoreKeeperViewModel? ReadElement(StoreKeeperSearchModel model); + bool Create(StoreKeeperBindingModel model); + bool Update(StoreKeeperBindingModel model); + bool Delete(StoreKeeperBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj index fa71b7a..9f4545e 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj @@ -6,4 +6,12 @@ enable + + + + + + + +