Создание FurnitureBisunessLogics
This commit is contained in:
parent
c7afd08471
commit
577035dbf7
@ -0,0 +1,35 @@
|
|||||||
|
using FurnitureContracts.BindingModels;
|
||||||
|
using FurnitureContracts.BusinessLogicsContracts;
|
||||||
|
using FurnitureContracts.SearchModels;
|
||||||
|
using FurnitureContracts.ViewModel;
|
||||||
|
|
||||||
|
namespace FurnitureBusinessLogic.BusinessLogics
|
||||||
|
{
|
||||||
|
public class OrdersLogic : IOrdersLogic
|
||||||
|
{
|
||||||
|
public bool Create(OrdersBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Delete(OrdersBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrdersViewModel? ReadElement(OrderSearchModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OrdersViewModel>? ReadList(OrderSearchModel? model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Update(OrdersBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -1,15 +1,17 @@
|
|||||||
using FurnitureContracts.BindingModels;
|
|
||||||
|
|
||||||
|
using FurnitureContracts.BindingModels;
|
||||||
using FurnitureContracts.SearchModels;
|
using FurnitureContracts.SearchModels;
|
||||||
using FurnitureContracts.ViewModel;
|
using FurnitureContracts.ViewModel;
|
||||||
|
|
||||||
namespace FurnitureContracts.BusinessLogicsContracts
|
namespace FurnitureContracts.BusinessLogicsContracts
|
||||||
{
|
{
|
||||||
public interface IRoleLogic
|
public interface IOrderLogic
|
||||||
{
|
{
|
||||||
List<RoleViewModel>? ReadList(SalesSalonsSearchModel? model);
|
List<OrdersViewModel>? ReadList(OrderSearchModel? model);
|
||||||
RoleViewModel? ReadElement(SalesSalonsSearchModel model);
|
OrdersViewModel? ReadElement(OrderSearchModel model);
|
||||||
bool Create(SalesSalonsBindingModel model);
|
bool Create(OrdersBindingModel model);
|
||||||
bool Update(SalesSalonsBindingModel model);
|
bool Update(OrdersBindingModel model);
|
||||||
bool Delete(SalesSalonsBindingModel model);
|
bool Delete(OrdersBindingModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,16 +6,16 @@ namespace FurnitureContracts.StoragesContracts
|
|||||||
{
|
{
|
||||||
public interface ISalesSalonsStorage
|
public interface ISalesSalonsStorage
|
||||||
{
|
{
|
||||||
List<SalesSalonsModel> GetFullList();
|
List<SalesSalonsViewModel> GetFullList();
|
||||||
|
|
||||||
List<SalesSalonsModel> GetFilteredList(SalesSalonsSearchModel model);
|
List<SalesSalonsViewModel> GetFilteredList(SalesSalonsSearchModel model);
|
||||||
|
|
||||||
SalesSalonsModel? GetElement(SalesSalonsSearchModel model);
|
SalesSalonsViewModel? GetElement(SalesSalonsSearchModel model);
|
||||||
|
|
||||||
SalesSalonsModel? Insert(SalesSalonsBindingModel model);
|
SalesSalonsViewModel? Insert(SalesSalonsBindingModel model);
|
||||||
|
|
||||||
SalesSalonsModel? Update(SalesSalonsBindingModel model);
|
SalesSalonsViewModel? Update(SalesSalonsBindingModel model);
|
||||||
|
|
||||||
SalesSalonsModel? Delete(SalesSalonsBindingModel model);
|
SalesSalonsViewModel? Delete(SalesSalonsBindingModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace FurnitureContracts.ViewModel
|
namespace FurnitureContracts.ViewModel
|
||||||
{
|
{
|
||||||
public class SalesSalonsModel : ISalesSalonsModel
|
public class SalesSalonsViewModel : ISalesSalonsModel
|
||||||
{
|
{
|
||||||
[DisplayName("Название")]
|
[DisplayName("Название")]
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
|
@ -7,7 +7,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureFactory", "Furnitu
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureFactoryDataModels", "FurnitureFactoryDataModels\FurnitureFactoryDataModels.csproj", "{5720C509-A0F9-41B1-8A55-3DDB7774999B}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureFactoryDataModels", "FurnitureFactoryDataModels\FurnitureFactoryDataModels.csproj", "{5720C509-A0F9-41B1-8A55-3DDB7774999B}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FurnitureContracts", "FurnitureContracts\FurnitureContracts.csproj", "{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureContracts", "FurnitureContracts\FurnitureContracts.csproj", "{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FurnitureBusinessLogic", "FurnitureBusinessLogic\FurnitureBusinessLogic.csproj", "{8FD61B4B-3F75-4024-BD47-E63B54E9D95E}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -27,6 +29,10 @@ Global
|
|||||||
{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Release|Any CPU.Build.0 = Release|Any CPU
|
{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
Loading…
Reference in New Issue
Block a user