storage contract

This commit is contained in:
dex_moth 2024-04-24 18:53:25 +04:00
parent eee043483a
commit 65599c80a2
8 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.StorageContracts
{
public interface IBuidStorage
{
List<BuildViewModel> GetFullList();
List<BuildViewModel> GetFilteredList(BuildSearchModel model);
BuildViewModel? GetElement(BuildSearchModel model);
BuildViewModel? Insert(BuildBindingModel model);
BuildViewModel? Update(BuildBindingModel model);
BuildViewModel? Delete(BuildBindingModel model);
}
}

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.StorageContracts
{
public interface ICommentStorage
{
List<CommentViewModel> GetFullList();
List<CommentViewModel> GetFilteredList(CommentSearchModel model);
CommentViewModel? GetElement(CommentSearchModel model);
CommentViewModel? Insert(CommentBindingModel model);
CommentViewModel? Update(CommentBindingModel model);
CommentViewModel? Delete(CommentBindingModel model);
}
}

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.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);
}
}

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.StorageContracts
{
public interface IOrderStorage
{
List<OrderViewModel> GetFullList();
List<OrderViewModel> GetFilteredList(OrderSearchModel model);
OrderViewModel? GetElement(OrderSearchModel model);
OrderViewModel? Insert(OrderBindingModel model);
OrderViewModel? Update(OrderBindingModel model);
OrderViewModel? Delete(OrderBindingModel model);
}
}

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.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);
}
}

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.StorageContracts
{
public interface IPurchaseStorage
{
List<PurchaseViewModel> GetFullList();
List<PurchaseViewModel> GetFilteredList(PurchaseSearchModel model);
PurchaseViewModel? GetElement(PurchaseSearchModel model);
PurchaseViewModel? Insert(PurchaseBindingModel model);
PurchaseViewModel? Update(PurchaseBindingModel model);
PurchaseViewModel? Delete(PurchaseBindingModel model);
}
}

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.StorageContracts
{
public interface IStoreKeeperStorage
{
List<StoreKeeperViewModel> GetFullList();
List<StoreKeeperViewModel> GetFilteredList(StoreKeeperSearchModel model);
StoreKeeperViewModel? GetElement(StoreKeeperSearchModel model);
StoreKeeperViewModel? Insert(StoreKeeperBindingModel model);
StoreKeeperViewModel? Update(StoreKeeperBindingModel model);
StoreKeeperViewModel? Delete(StoreKeeperBindingModel model);
}
}

View File

@ -0,0 +1,12 @@
namespace ComputerHardwareStoreContracts.StorageContracts
{
public interface IVendorStorage
{
List<VendorViewModel> GetFullList();
List<VendorViewModel> GetFilteredList(VendorSearchModel model);
VendorViewModel? GetElement(VendorSearchModel model);
VendorViewModel? Insert(VendorBindingModel model);
VendorViewModel? Update(VendorBindingModel model);
VendorViewModel? Delete(VendorBindingModel model);
}
}