Storage add

This commit is contained in:
Игорь Гордеев 2024-04-28 20:59:10 +04:00
parent 9c049cd819
commit 6a7395b3b5
6 changed files with 126 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}