diff --git a/Contracts/BindingModels/SupplyBindingModel.cs b/Contracts/BindingModels/SupplyBindingModel.cs index 9611abc..9c2e2f1 100644 --- a/Contracts/BindingModels/SupplyBindingModel.cs +++ b/Contracts/BindingModels/SupplyBindingModel.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace Contracts.BindingModels { - internal class SupplyBindingModel : ISupply + public class SupplyBindingModel : ISupply { public Guid Id { get; set; } public string Name { get; set; } = string.Empty; diff --git a/Contracts/BusinessLogicContracts/IProductLogic.cs b/Contracts/BusinessLogicContracts/IProductLogic.cs index b19b8e8..4711e97 100644 --- a/Contracts/BusinessLogicContracts/IProductLogic.cs +++ b/Contracts/BusinessLogicContracts/IProductLogic.cs @@ -1,4 +1,6 @@ using Contracts.BindingModels; +using Contracts.SearchModels; +using Contracts.ViewModels; using System; using System.Collections.Generic; using System.Linq; @@ -12,6 +14,7 @@ namespace Contracts.BusinessLogicContracts bool Create(ProductBindingModel model); bool Update(ProductBindingModel model); bool Delete(ProductBindingModel model); - + List? ReadList(ProductSearchModel? model); + ProductViewModel? ReadElement(ProductSearchModel model); } } diff --git a/Contracts/BusinessLogicContracts/ISupplierLogic.cs b/Contracts/BusinessLogicContracts/ISupplierLogic.cs new file mode 100644 index 0000000..24ed51c --- /dev/null +++ b/Contracts/BusinessLogicContracts/ISupplierLogic.cs @@ -0,0 +1,20 @@ +using Contracts.BindingModels; +using Contracts.SearchModels; +using Contracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BusinessLogicContracts +{ + public interface ISupplierLogic + { + List? ReadList(SupplierSearchModel? model); + SupplierViewModel? ReadElement(SupplierSearchModel model); + bool Create(SupplierBindingModel model); + bool Update(SupplierBindingModel model); + bool Delete(SupplierBindingModel model); + } +} diff --git a/Contracts/BusinessLogicContracts/ISupplyDocLogic.cs b/Contracts/BusinessLogicContracts/ISupplyDocLogic.cs new file mode 100644 index 0000000..3d441c1 --- /dev/null +++ b/Contracts/BusinessLogicContracts/ISupplyDocLogic.cs @@ -0,0 +1,20 @@ +using Contracts.BindingModels; +using Contracts.SearchModels; +using Contracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BusinessLogicContracts +{ + public interface ISupplyDocLogic + { + List? ReadList(SupplyDocSearchModel? model); + SupplyDocViewModel? ReadElement(SupplyDocSearchModel model); + bool Create(SupplyDocBindingModel model); + bool Update(SupplyDocBindingModel model); + bool Delete(SupplyDocBindingModel model); + } +} diff --git a/Contracts/BusinessLogicContracts/ISupplyLogic.cs b/Contracts/BusinessLogicContracts/ISupplyLogic.cs new file mode 100644 index 0000000..d21ff5d --- /dev/null +++ b/Contracts/BusinessLogicContracts/ISupplyLogic.cs @@ -0,0 +1,20 @@ +using Contracts.BindingModels; +using Contracts.SearchModels; +using Contracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BusinessLogicContracts +{ + public interface ISupplyLogic + { + List? ReadList(SupplySearchModel? model); + SupplyViewModel? ReadElement(SupplySearchModel model); + bool Create(SupplyBindingModel model); + bool Update(SupplyBindingModel model); + bool Delete(SupplyBindingModel model); + } +} diff --git a/Contracts/StorageContracts/IProductStorage.cs b/Contracts/StorageContracts/IProductStorage.cs index 49ce4e3..7d8e2bd 100644 --- a/Contracts/StorageContracts/IProductStorage.cs +++ b/Contracts/StorageContracts/IProductStorage.cs @@ -1,5 +1,6 @@ using Contracts.BindingModels; using Contracts.SearchModels; +using Contracts.ViewModels; using System; using System.Collections.Generic; using System.Linq; @@ -10,14 +11,11 @@ namespace Contracts.StorageContracts { public interface IProductStorage { - ProductBindingModel? Insert(ProductBindingModel model); - - IEnumerable GetList(ProductSearchModel? model); - - ProductBindingModel? GetElement(ProductSearchModel model); - - ProductBindingModel? Update(ProductBindingModel model); - - ProductBindingModel? Delete(ProductSearchModel model); - } + List GetFullList(); + List GetFilteredList(ProductSearchModel model); + ProductViewModel? GetElement(ProductSearchModel model); + ProductViewModel? Insert(ProductBindingModel model); + ProductViewModel? Update(ProductBindingModel model); + ProductViewModel? Delete(ProductBindingModel model); + } } diff --git a/Contracts/StorageContracts/ISupplierStorage.cs b/Contracts/StorageContracts/ISupplierStorage.cs new file mode 100644 index 0000000..dc2f1fe --- /dev/null +++ b/Contracts/StorageContracts/ISupplierStorage.cs @@ -0,0 +1,21 @@ +using Contracts.BindingModels; +using Contracts.SearchModels; +using Contracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.StorageContracts +{ + public interface ISupplierStorage + { + List GetFullList(); + List GetFilteredList(SupplierSearchModel model); + SupplierViewModel? GetElement(SupplierSearchModel model); + SupplierViewModel? Insert(SupplierBindingModel model); + SupplierViewModel? Update(SupplierBindingModel model); + SupplierViewModel? Delete(SupplierBindingModel model); + } +} diff --git a/Contracts/StorageContracts/ISupplyDocStorage.cs b/Contracts/StorageContracts/ISupplyDocStorage.cs new file mode 100644 index 0000000..d10ab0e --- /dev/null +++ b/Contracts/StorageContracts/ISupplyDocStorage.cs @@ -0,0 +1,21 @@ +using Contracts.BindingModels; +using Contracts.SearchModels; +using Contracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.StorageContracts +{ + public interface ISupplyDocStorage + { + List GetFullList(); + List GetFilteredList(SupplyDocSearchModel model); + SupplyDocViewModel? GetElement(SupplyDocSearchModel model); + SupplyDocViewModel? Insert(SupplyDocBindingModel model); + SupplyDocViewModel? Update(SupplyDocBindingModel model); + SupplyDocViewModel? Delete(SupplyDocBindingModel model); + } +} diff --git a/Contracts/StorageContracts/ISupplyStorage.cs b/Contracts/StorageContracts/ISupplyStorage.cs new file mode 100644 index 0000000..2f81c46 --- /dev/null +++ b/Contracts/StorageContracts/ISupplyStorage.cs @@ -0,0 +1,21 @@ +using Contracts.BindingModels; +using Contracts.SearchModels; +using Contracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.StorageContracts +{ + public interface ISupplyStorage + { + List GetFullList(); + List GetFilteredList(SupplySearchModel model); + SupplyViewModel? GetElement(SupplySearchModel model); + SupplyViewModel? Insert(SupplyBindingModel model); + SupplyViewModel? Update(SupplyBindingModel model); + SupplyViewModel? Delete(SupplyBindingModel model); + } +}