Создание FurnitureBisunessLogics

This commit is contained in:
FLARJ 2023-04-06 18:35:37 +04:00
parent c7afd08471
commit 577035dbf7
6 changed files with 67 additions and 15 deletions

View File

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

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

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

View File

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

View File

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

View File

@ -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