diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/MasterBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/MasterBuisnessLogicContract.cs new file mode 100644 index 0000000..5549add --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/MasterBuisnessLogicContract.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.BuisnessLogicsContracts; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketBuisnessLogic.Implementations; + +internal class MasterBuisnessLogicContract : IMasterBuisnessLogicContract +{ + public List GetAllMasters(bool onlyActive = true) + { + return []; + } + + public List GetAllMastersByBirthDate(DateTime fromDate, DateTime toDate, bool onlyActive = true) + { + return []; + } + + public List GetAllMastersByEmploymentDate(DateTime fromDate, DateTime toDate, bool onlyActive = true) + { + return []; + } + + public List GetAllMastersByPost(string postId, bool onlyActive = true) + { + return []; + } + + public MasterDataModel GetMasterByData(string data) + { + return new("", "", "", default, default, default); + } + + public void InsertMaster(MasterDataModel masterDataModel) + { + + } + + public void UpdateMaster(MasterDataModel masterDataModel) + { + + } + + public void DeleteMaster(string id) + { + + } +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/OrderBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/OrderBuisnessLogicContract.cs new file mode 100644 index 0000000..ff2f5bf --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/OrderBuisnessLogicContract.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.BuisnessLogicsContracts; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketBuisnessLogic.Implementations; + +internal class OrderBuisnessLogicContract : IOrderBuisnessLogicContract +{ + public List GetAllOrder() + { + return []; + } + + public List GetAllOrderByBirthDate(DateTime fromDate, DateTime toDate) + { + return []; + } + + public OrderDataModel GetOrderByData(string data) + { + return new("", default, default, default); + } + + public void InsertOrder(MasterDataModel masterDataModel) + { + + } + + public void UpdateOrder(MasterDataModel masterDataModel) + { + + } + public void DeleteOrder(string id) + { + + } +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/PostBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/PostBuisnessLogicContract.cs new file mode 100644 index 0000000..25039c2 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/PostBuisnessLogicContract.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.BuisnessLogicsContracts; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketBuisnessLogic.Implementations; + +internal class PostBuisnessLogicContract : IPostBuisnessLogicContract +{ + public List GetAllDataOfPost(string postId) + { + return []; + } + + public List GetAllPost(bool onlyActive) + { + return []; + } + + public PostDataModel GetPostByData(string data) + { + return new("", "", "", default, 0, default, default); + } + + public void InsertPost(PostDataModel postDataModel) + { + + } + + public void RestorePost(string id) + { + + } + + public void UpdatePost(PostDataModel postDataModel) + { + + } + public void DeletePost(string id) + { + + } +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/SalaryBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/SalaryBuisnessLogicContract.cs new file mode 100644 index 0000000..3cb4c9f --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/SalaryBuisnessLogicContract.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.BuisnessLogicsContracts; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketBuisnessLogic.Implementations; + +internal class SalaryBuisnessLogicContract : ISalaryBuisnessLogicContract +{ + public List GetAllSalariesByPeriod(DateTime fromDate, DateTime toDate) + { + return []; + } + + public List GetAllSalariesByPeriodByMaster(DateTime fromDate, DateTime toDate, string masterId) + { + return []; + } + public void CalculateSalaryByMounth(DateTime date) + { + + } +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceBuisnessLogicContract.cs new file mode 100644 index 0000000..050d75a --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceBuisnessLogicContract.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.BuisnessLogicsContracts; +using TwoFromTheCasketContratcs.DataModels; +using TwoFromTheCasketContratcs.Enums; + +namespace TwoFromTheCasketBuisnessLogic.Implementations; + +internal class ServiceBuisnessLogicContract : IServiceBuisnessLogicContract +{ + public List GetAllServices(bool onlyActive) + { + return []; + } + + public List GetAllServicesByMasterId(string masterId, bool onlyActive) + { + return []; + } + + public List GetAllServicesByServiceType(ServiceType serviceType, bool onlyActive) + { + return []; + } + + public void InsertService(ServiceDataModel serviceDataModel) + { + + } + + public void UpdateService(ServiceDataModel serviceDataModel) + { + + } + public void DeleteService(string id) + { + + } +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceHistoryBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceHistoryBuisnessLogicContract.cs new file mode 100644 index 0000000..45ad18a --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceHistoryBuisnessLogicContract.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.BuisnessLogicsContracts; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketBuisnessLogic.Implementations; + +internal class ServiceHistoryBuisnessLogicContract : IServiceHistoryBuisnessLogicContract +{ + public List GetAllService() + { + return []; + } + + public List GetAllServicesByChangeDate(DateTime fromDate, DateTime toDate) + { + return []; + } + + public List GetAllServicesByServiceId(string serviceId) + { + return []; + } +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceOrderBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceOrderBuisnessLogicContract.cs new file mode 100644 index 0000000..da9543b --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/Implementations/ServiceOrderBuisnessLogicContract.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.BuisnessLogicsContracts; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketBuisnessLogic.Implementations; + +internal class ServiceOrderBuisnessLogicContract : IServiceOrderBuisnessLogicContract +{ + public List GetAllServiceOrder() + { + return []; + } + + public List GetAllServiceOrdersByMasterId(string masterId) + { + return []; + } + + public List GetAllServiceOrdersByOrderId(string orderId) + { + return []; + } + + public List GetAllServiceOrdersByServiceId(string serviceId) + { + return []; + } + + public ServiceOrderDataModel GetElementByTimeOfWorking(int timeOfWorking) + { + return new("","","",0); + } + + public void InsertServiceOrder(ServiceOrderDataModel serviceOrder) + { + + } + + public void UpdateServiceOrder(ServiceOrderDataModel serviceOrder) + { + + } + public void DeleteServiceOrder(string id) + { + + } +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/TwoFromTheCasketBuisnessLogic.csproj b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/TwoFromTheCasketBuisnessLogic.csproj new file mode 100644 index 0000000..260ff07 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketBuisnessLogic/TwoFromTheCasketBuisnessLogic.csproj @@ -0,0 +1,13 @@ + + + + net9.0 + enable + enable + + + + + + + diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs.sln b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs.sln index e6ba20d..80fb9aa 100644 --- a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs.sln +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwoFromTheCasketContratcs", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwoFromTheCasketTest", "TwoFromTheCasketTest\TwoFromTheCasketTest.csproj", "{71E6B2F8-F494-4500-A887-481047D885DF}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TwoFromTheCasketBuisnessLogic", "TwoFromTheCasketBuisnessLogic\TwoFromTheCasketBuisnessLogic.csproj", "{371435E4-6D04-4302-86C8-23F063FBE57A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {71E6B2F8-F494-4500-A887-481047D885DF}.Debug|Any CPU.Build.0 = Debug|Any CPU {71E6B2F8-F494-4500-A887-481047D885DF}.Release|Any CPU.ActiveCfg = Release|Any CPU {71E6B2F8-F494-4500-A887-481047D885DF}.Release|Any CPU.Build.0 = Release|Any CPU + {371435E4-6D04-4302-86C8-23F063FBE57A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {371435E4-6D04-4302-86C8-23F063FBE57A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {371435E4-6D04-4302-86C8-23F063FBE57A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {371435E4-6D04-4302-86C8-23F063FBE57A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IMasterBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IMasterBuisnessLogicContract.cs new file mode 100644 index 0000000..ec09a0e --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IMasterBuisnessLogicContract.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts; + +public interface IMasterBuisnessLogicContract +{ + List GetAllMasters(bool onlyActive = true); + + List GetAllMastersByPost(string postId, bool onlyActive = true); + List GetAllMastersByBirthDate(DateTime fromDate, DateTime toDate, bool onlyActive = true); + + List GetAllMastersByEmploymentDate(DateTime fromDate, DateTime toDate, bool onlyActive = true); + + MasterDataModel GetMasterByData(string data); + + void InsertMaster(MasterDataModel masterDataModel); + + void UpdateMaster(MasterDataModel masterDataModel); + + void DeleteMaster(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IOrderBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IOrderBuisnessLogicContract.cs new file mode 100644 index 0000000..df25850 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IOrderBuisnessLogicContract.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts; + +public interface IOrderBuisnessLogicContract +{ + List GetAllOrder(); + + List GetAllOrderByBirthDate(DateTime fromDate, DateTime toDate); + + OrderDataModel GetOrderByData(string data); + + void InsertOrder(MasterDataModel masterDataModel); + + void UpdateOrder(MasterDataModel masterDataModel); + + void DeleteOrder(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IPostBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IPostBuisnessLogicContract.cs new file mode 100644 index 0000000..8c51312 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IPostBuisnessLogicContract.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts; + +public interface IPostBuisnessLogicContract +{ + List GetAllPost(bool onlyActive); + + List GetAllDataOfPost(string postId); + + PostDataModel GetPostByData(string data); + + void InsertPost(PostDataModel postDataModel); + + void UpdatePost(PostDataModel postDataModel); + + void DeletePost(string id); + + void RestorePost(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/ISalaryBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/ISalaryBuisnessLogicContract.cs new file mode 100644 index 0000000..bfd8c3c --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/ISalaryBuisnessLogicContract.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts; + +public interface ISalaryBuisnessLogicContract +{ + List GetAllSalariesByPeriod(DateTime fromDate, DateTime toDate); + + List GetAllSalariesByPeriodByMaster(DateTime fromDate, DateTime toDate, string masterId); + + void CalculateSalaryByMounth(DateTime date); +} + diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceBuisnessLogicContract.cs new file mode 100644 index 0000000..4e832bb --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceBuisnessLogicContract.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; +using TwoFromTheCasketContratcs.Enums; + +namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts; + +public interface IServiceBuisnessLogicContract +{ + List GetAllServices(bool onlyActive); + + List GetAllServicesByServiceType(ServiceType serviceType, bool onlyActive); + + List GetAllServicesByMasterId(string masterId, bool onlyActive); + + void InsertService(ServiceDataModel serviceDataModel); + + void UpdateService(ServiceDataModel serviceDataModel); + + void DeleteService(string id); + + +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceHistoryBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceHistoryBuisnessLogicContract.cs new file mode 100644 index 0000000..40096e3 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceHistoryBuisnessLogicContract.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; +using TwoFromTheCasketContratcs.Enums; + +namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts; + +public interface IServiceHistoryBuisnessLogicContract +{ + List GetAllService(); + + List GetAllServicesByServiceId(string serviceId); + + List GetAllServicesByChangeDate(DateTime fromDate, DateTime toDate); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceOrderBuisnessLogicContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceOrderBuisnessLogicContract.cs new file mode 100644 index 0000000..c6ebfd9 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/BuisnessLogicsContracts/IServiceOrderBuisnessLogicContract.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.BuisnessLogicsContracts; + +public interface IServiceOrderBuisnessLogicContract +{ + List GetAllServiceOrder(); + + List GetAllServiceOrdersByOrderId(string orderId); + + List GetAllServiceOrdersByServiceId(string serviceId); + + List GetAllServiceOrdersByMasterId(string masterId); + + ServiceOrderDataModel GetElementByTimeOfWorking(int timeOfWorking); + + void InsertServiceOrder(ServiceOrderDataModel serviceOrder); + + void UpdateServiceOrder(ServiceOrderDataModel serviceOrder); + + void DeleteServiceOrder(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IMasterStorageContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IMasterStorageContract.cs new file mode 100644 index 0000000..43a6818 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IMasterStorageContract.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.StorageContracts; + +public interface IMasterStorageContract +{ + List GetList(); + + MasterDataModel? GetElementById(string id); + + MasterDataModel? GetElementByName(string name); + + void AddElement(MasterDataModel masterDataModel); + + void UpdElement(MasterDataModel masterDataModel); + + void DelElement(string id); + +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IOrderStorageContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IOrderStorageContract.cs new file mode 100644 index 0000000..797dede --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IOrderStorageContract.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; +using TwoFromTheCasketContratcs.Enums; + +namespace TwoFromTheCasketContratcs.StorageContracts; + +public interface IOrderStorageContract +{ + List GetList(); + + OrderDataModel? GetElementById(string id); + + OrderDataModel? GetElementByDate(DateTime date); + + OrderDataModel? GetElementByStatus(StatusType status); + + void AddElement(OrderDataModel orderDataModel); + + void UpdElement(OrderDataModel orderDataModel); + + void DelElement(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IPostStorageContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IPostStorageContract.cs new file mode 100644 index 0000000..b82d766 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IPostStorageContract.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.StorageContracts; + +public interface IPostStorageContract +{ + List GetList(bool onlyActual = true); + + List GetPostWithHistory(string postId); + + PostDataModel? GetElementById(string id); + + PostDataModel? GetElementByName(string name); + + void AddElement(PostDataModel postDataModel); + + void UpdElement(PostDataModel postDataModel); + + void DelElement(string id); + + void ResElement(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/ISalaryStorageContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/ISalaryStorageContract.cs new file mode 100644 index 0000000..7a43567 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/ISalaryStorageContract.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; +using TwoFromTheCasketContratcs.Enums; + +namespace TwoFromTheCasketContratcs.StorageContracts; + +public interface ISalaryStorageContract +{ + List GetList(); + + SalaryDataModel? GetElementByMasterId(string masterId); + + SalaryDataModel? GetElementBySalaryDate(DateTime salaryDate); + + void AddElement(SalaryDataModel salaryDataModel); + + void UpdElement(SalaryDataModel salaryDataModel); + + void DelElement(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceHistoryStorageContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceHistoryStorageContract.cs new file mode 100644 index 0000000..5a532b9 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceHistoryStorageContract.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.StorageContracts; + +public interface IServiceHistoryStorageContract +{ + List GetList(); + + ServiceHistoryDataModel? GetElementByServiceId(string serviceId); + + void AddElement(ServiceHistoryDataModel serviceHistoryDataModel); + + void UpdElement(ServiceHistoryDataModel serviceHistoryDataModel); + + void DelElement(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceOrderStorageContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceOrderStorageContract.cs new file mode 100644 index 0000000..cd4eb3b --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceOrderStorageContract.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; + +namespace TwoFromTheCasketContratcs.StorageContracts; + +public interface IServiceOrderStorageContract +{ + List GetList(); + + ServiceOrderDataModel? GetElementByOrderId(string orderId); + + ServiceOrderDataModel? GetElementByServiceId(string serviceId); + + ServiceOrderDataModel? GetElementByMasterId(string masterId); + void AddElement(ServiceOrderDataModel serviceDataModel); + + void UpdElement(ServiceOrderDataModel serviceDataModel); + + void DelElement(string id); +} diff --git a/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceStorageContract.cs b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceStorageContract.cs new file mode 100644 index 0000000..65cb437 --- /dev/null +++ b/TwoFromTheCasketContratcs/TwoFromTheCasketContratcs/StorageContracts/IServiceStorageContract.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TwoFromTheCasketContratcs.DataModels; +using TwoFromTheCasketContratcs.Enums; + +namespace TwoFromTheCasketContratcs.StorageContracts; + +public interface IServiceStorageContract +{ + List GetList(); + + ServiceDataModel? GetElementById(string id); + + ServiceDataModel? GetElementByServiceName(string name); + + ServiceDataModel? GetElementByMasterId(string masterId); + void AddElement(ServiceDataModel serviceDataModel); + + void UpdElement(ServiceDataModel serviceDataModel); + + void DelElement(string id); +}