Storage add
This commit is contained in:
parent
9c049cd819
commit
6a7395b3b5
@ -0,0 +1,21 @@
|
||||
using ElectronicsShopContracts.BindingModels;
|
||||
using ElectronicsShopContracts.SearchModels;
|
||||
using ElectronicsShopContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronicsShopContracts.StorageContracts
|
||||
{
|
||||
public interface ICategoryProductStorage
|
||||
{
|
||||
List<CategoryProductViewModel> GetFullList();
|
||||
List<CategoryProductViewModel> GetFilteredList(ClientSearchModel model);
|
||||
CategoryProductViewModel? GetElement(ClientSearchModel model);
|
||||
CategoryProductViewModel? Insert(ClientBindingModel model);
|
||||
CategoryProductViewModel? Update(ClientBindingModel model);
|
||||
CategoryProductViewModel? Delete(ClientBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using ElectronicsShopContracts.BindingModels;
|
||||
using ElectronicsShopContracts.SearchModels;
|
||||
using ElectronicsShopContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronicsShopContracts.StorageContracts
|
||||
{
|
||||
public interface IClientStorage
|
||||
{
|
||||
List<ClientViewModel> GetFullList();
|
||||
List<ClientViewModel> GetFilteredList(ClientSearchModel model);
|
||||
ClientViewModel? GetElement(ClientSearchModel model);
|
||||
ClientViewModel? Insert(ClientBindingModel model);
|
||||
ClientViewModel? Update(ClientBindingModel model);
|
||||
ClientViewModel? Delete(ClientBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using ElectronicsShopContracts.BindingModels;
|
||||
using ElectronicsShopContracts.SearchModels;
|
||||
using ElectronicsShopContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronicsShopContracts.StorageContracts
|
||||
{
|
||||
public interface IOrderStorage
|
||||
{
|
||||
List<OrderViewModel> GetFullList();
|
||||
List<OrderViewModel> GetFilteredList(ClientSearchModel model);
|
||||
OrderViewModel? GetElement(ClientSearchModel model);
|
||||
OrderViewModel? Insert(ClientBindingModel model);
|
||||
OrderViewModel? Update(ClientBindingModel model);
|
||||
OrderViewModel? Delete(ClientBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using ElectronicsShopContracts.BindingModels;
|
||||
using ElectronicsShopContracts.SearchModels;
|
||||
using ElectronicsShopContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronicsShopContracts.StorageContracts
|
||||
{
|
||||
public interface IProductStorage
|
||||
{
|
||||
List<ProductViewModel> GetFullList();
|
||||
List<ProductViewModel> GetFilteredList(ClientSearchModel model);
|
||||
ProductViewModel? GetElement(ClientSearchModel model);
|
||||
ProductViewModel? Insert(ClientBindingModel model);
|
||||
ProductViewModel? Update(ClientBindingModel model);
|
||||
ProductViewModel? Delete(ClientBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using ElectronicsShopContracts.BindingModels;
|
||||
using ElectronicsShopContracts.SearchModels;
|
||||
using ElectronicsShopContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronicsShopContracts.StorageContracts
|
||||
{
|
||||
public interface IRoleStorage
|
||||
{
|
||||
List<RoleViewModel> GetFullList();
|
||||
List<RoleViewModel> GetFilteredList(ClientSearchModel model);
|
||||
RoleViewModel? GetElement(ClientSearchModel model);
|
||||
RoleViewModel? Insert(ClientBindingModel model);
|
||||
RoleViewModel? Update(ClientBindingModel model);
|
||||
RoleViewModel? Delete(ClientBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using ElectronicsShopContracts.BindingModels;
|
||||
using ElectronicsShopContracts.SearchModels;
|
||||
using ElectronicsShopContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronicsShopContracts.StorageContracts
|
||||
{
|
||||
public interface IShopAssistentStorage
|
||||
{
|
||||
List<ShopAssistentViewModel> GetFullList();
|
||||
List<ShopAssistentViewModel> GetFilteredList(ClientSearchModel model);
|
||||
ShopAssistentViewModel? GetElement(ClientSearchModel model);
|
||||
ShopAssistentViewModel? Insert(ClientBindingModel model);
|
||||
ShopAssistentViewModel? Update(ClientBindingModel model);
|
||||
ShopAssistentViewModel? Delete(ClientBindingModel model);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user