Guarantor: StorageContracts
This commit is contained in:
parent
67e03f94a1
commit
e7ec00c14e
@ -8,7 +8,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BusinessLogicContracts\" />
|
||||
<Folder Include="StorageContracts\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
21
ComputerStoreContracts/StorageContracts/IComponentStorage.cs
Normal file
21
ComputerStoreContracts/StorageContracts/IComponentStorage.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using ComputerStoreContracts.BindingModels;
|
||||
using ComputerStoreContracts.SearchModels;
|
||||
using ComputerStoreContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IComponentStorage
|
||||
{
|
||||
List<ComponentViewModel> GetFullList();
|
||||
List<ComponentViewModel> GetFilteredList(ComponentSearchModel model);
|
||||
ComponentViewModel? GetElement(ComponentSearchModel model);
|
||||
ComponentViewModel? Insert(ComponentBindingModel model);
|
||||
ComponentViewModel? Update(ComponentBindingModel model);
|
||||
ComponentViewModel? Delete(ComponentBindingModel model);
|
||||
}
|
||||
}
|
21
ComputerStoreContracts/StorageContracts/IPCStorage.cs
Normal file
21
ComputerStoreContracts/StorageContracts/IPCStorage.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using ComputerStoreContracts.BindingModels;
|
||||
using ComputerStoreContracts.SearchModels;
|
||||
using ComputerStoreContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IPCStorage
|
||||
{
|
||||
List<PCViewModel> GetFullList();
|
||||
List<PCViewModel> GetFilteredList(PCSearchModel model);
|
||||
PCViewModel? GetElement(PCSearchModel model);
|
||||
PCViewModel? Insert(PCBindingModel model);
|
||||
PCViewModel? Update(PCBindingModel model);
|
||||
PCViewModel? Delete(PCBindingModel model);
|
||||
}
|
||||
}
|
21
ComputerStoreContracts/StorageContracts/IProductStorage.cs
Normal file
21
ComputerStoreContracts/StorageContracts/IProductStorage.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using ComputerStoreContracts.BindingModels;
|
||||
using ComputerStoreContracts.SearchModels;
|
||||
using ComputerStoreContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComputerStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IProductStorage
|
||||
{
|
||||
List<ProductViewModel> GetFullList();
|
||||
List<ProductViewModel> GetFilteredList(ProductSearchModel model);
|
||||
ProductViewModel? GetElement(ProductSearchModel model);
|
||||
ProductViewModel? Insert(ProductBindingModel model);
|
||||
ProductViewModel? Update(ProductBindingModel model);
|
||||
ProductViewModel? Delete(ProductBindingModel model);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user