Создание и заполнение StoragesContracts
This commit is contained in:
parent
271dad55c3
commit
c73cd96853
@ -4,9 +4,9 @@ using FurnitureContracts.ViewModel;
|
|||||||
|
|
||||||
namespace FurnitureContracts.BusinessLogicsContracts
|
namespace FurnitureContracts.BusinessLogicsContracts
|
||||||
{
|
{
|
||||||
public interface IOrdersLogic
|
public interface IHeadsetLogic
|
||||||
{
|
{
|
||||||
List<OrdersViewModel>? ReadList(OrderSearchModel? model);
|
List<HeadsetViewModel>? ReadList(HeadsetSearchModel? model);
|
||||||
OrdersViewModel? ReadElement(OrderSearchModel model);
|
OrdersViewModel? ReadElement(OrderSearchModel model);
|
||||||
bool Create(OrdersBindingModel model);
|
bool Create(OrdersBindingModel model);
|
||||||
bool Update(OrdersBindingModel model);
|
bool Update(OrdersBindingModel model);
|
||||||
|
@ -6,10 +6,10 @@ namespace FurnitureContracts.BusinessLogicsContracts
|
|||||||
{
|
{
|
||||||
public interface IRoleLogic
|
public interface IRoleLogic
|
||||||
{
|
{
|
||||||
List<RoleViewModel>? ReadList(RoleSearchModel? model);
|
List<RoleViewModel>? ReadList(SalesSalonsSearchModel? model);
|
||||||
RoleViewModel? ReadElement(RoleSearchModel model);
|
RoleViewModel? ReadElement(SalesSalonsSearchModel model);
|
||||||
bool Create(RoleBindingModel model);
|
bool Create(SalesSalonsBindingModel model);
|
||||||
bool Update(RoleBindingModel model);
|
bool Update(SalesSalonsBindingModel model);
|
||||||
bool Delete(RoleBindingModel model);
|
bool Delete(SalesSalonsBindingModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,12 +4,12 @@ using FurnitureContracts.ViewModel;
|
|||||||
|
|
||||||
namespace FurnitureContracts.BusinessLogicsContracts
|
namespace FurnitureContracts.BusinessLogicsContracts
|
||||||
{
|
{
|
||||||
public interface IOrdersLogic
|
public interface IRoleLogic
|
||||||
{
|
{
|
||||||
List<OrdersViewModel>? ReadList(OrderSearchModel? model);
|
List<RoleViewModel>? ReadList(SalesSalonsSearchModel? model);
|
||||||
OrdersViewModel? ReadElement(OrderSearchModel model);
|
RoleViewModel? ReadElement(SalesSalonsSearchModel model);
|
||||||
bool Create(OrdersBindingModel model);
|
bool Create(SalesSalonsBindingModel model);
|
||||||
bool Update(OrdersBindingModel model);
|
bool Update(SalesSalonsBindingModel model);
|
||||||
bool Delete(OrdersBindingModel model);
|
bool Delete(SalesSalonsBindingModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
using FurnitureContracts.BindingModels;
|
||||||
|
using FurnitureContracts.SearchModels;
|
||||||
|
using FurnitureContracts.ViewModel;
|
||||||
|
|
||||||
|
namespace FurnitureContracts.StoragesContracts
|
||||||
|
{
|
||||||
|
public interface IHeadsetStorage
|
||||||
|
{
|
||||||
|
List<HeadsetViewModel> GetFullList();
|
||||||
|
|
||||||
|
List<HeadsetViewModel> GetFilteredList(HeadsetSearchModel model);
|
||||||
|
|
||||||
|
HeadsetViewModel? GetElement(HeadsetSearchModel model);
|
||||||
|
|
||||||
|
HeadsetViewModel? Insert(HeadsetBindingModel model);
|
||||||
|
|
||||||
|
HeadsetViewModel? Update(HeadsetBindingModel model);
|
||||||
|
|
||||||
|
HeadsetViewModel? Delete(HeadsetBindingModel model);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
using FurnitureContracts.BindingModels;
|
||||||
|
using FurnitureContracts.SearchModels;
|
||||||
|
using FurnitureContracts.ViewModel;
|
||||||
|
|
||||||
|
namespace FurnitureContracts.StoragesContracts
|
||||||
|
{
|
||||||
|
public interface IOrdersStorage
|
||||||
|
{
|
||||||
|
List<OrdersViewModel> GetFullList();
|
||||||
|
|
||||||
|
List<OrdersViewModel> GetFilteredList(OrderSearchModel model);
|
||||||
|
|
||||||
|
OrdersViewModel? GetElement(OrderSearchModel model);
|
||||||
|
|
||||||
|
OrdersViewModel? Insert(OrdersBindingModel model);
|
||||||
|
|
||||||
|
OrdersViewModel? Update(OrdersBindingModel model);
|
||||||
|
|
||||||
|
OrdersViewModel? Delete(OrdersBindingModel model);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
using FurnitureContracts.BindingModels;
|
||||||
|
using FurnitureContracts.SearchModels;
|
||||||
|
using FurnitureContracts.ViewModel;
|
||||||
|
|
||||||
|
namespace FurnitureContracts.StoragesContracts
|
||||||
|
{
|
||||||
|
public interface IRoleStorage
|
||||||
|
{
|
||||||
|
List<RoleViewModel> GetFullList();
|
||||||
|
|
||||||
|
List<RoleViewModel> GetFilteredList(RoleSearchModel model);
|
||||||
|
|
||||||
|
RoleViewModel? GetElement(RoleSearchModel model);
|
||||||
|
|
||||||
|
RoleViewModel? Insert(RoleBindingModel model);
|
||||||
|
|
||||||
|
RoleViewModel? Update(RoleBindingModel model);
|
||||||
|
|
||||||
|
RoleViewModel? Delete(RoleBindingModel model);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
using FurnitureContracts.BindingModels;
|
||||||
|
using FurnitureContracts.SearchModels;
|
||||||
|
using FurnitureContracts.ViewModel;
|
||||||
|
|
||||||
|
namespace FurnitureContracts.StoragesContracts
|
||||||
|
{
|
||||||
|
public interface ISalesSalonsStorage
|
||||||
|
{
|
||||||
|
List<SalesSalonsModel> GetFullList();
|
||||||
|
|
||||||
|
List<SalesSalonsModel> GetFilteredList(SalesSalonsSearchModel model);
|
||||||
|
|
||||||
|
SalesSalonsModel? GetElement(SalesSalonsSearchModel model);
|
||||||
|
|
||||||
|
SalesSalonsModel? Insert(SalesSalonsBindingModel model);
|
||||||
|
|
||||||
|
SalesSalonsModel? Update(SalesSalonsBindingModel model);
|
||||||
|
|
||||||
|
SalesSalonsModel? Delete(SalesSalonsBindingModel model);
|
||||||
|
}
|
||||||
|
}
|
@ -3,11 +3,11 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace FurnitureContracts.ViewModel
|
namespace FurnitureContracts.ViewModel
|
||||||
{
|
{
|
||||||
public class SalesSalonsViewModel : ISalesSalonsModel
|
public class SalesSalonsModel : ISalesSalonsModel
|
||||||
{
|
{
|
||||||
[DisplayName("Название")]
|
[DisplayName("Название")]
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
[DisplayName("Адрес")]
|
[DisplayName("Адресс")]
|
||||||
public string Address { get; set; } = string.Empty;
|
public string Address { get; set; } = string.Empty;
|
||||||
public Dictionary<int, IOrdersModel> OrdersId { get; set; }
|
public Dictionary<int, IOrdersModel> OrdersId { get; set; }
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user