This commit is contained in:
Ismailov_Rovshan 2023-04-06 18:50:44 +04:00
commit de97a8be55
6 changed files with 66 additions and 14 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.ViewModel;
namespace FurnitureContracts.BusinessLogicsContracts
{
public interface IRoleLogic
public interface IOrderLogic
{
List<RoleViewModel>? ReadList(SalesSalonsSearchModel? model);
RoleViewModel? ReadElement(SalesSalonsSearchModel model);
bool Create(SalesSalonsBindingModel model);
bool Update(SalesSalonsBindingModel model);
bool Delete(SalesSalonsBindingModel model);
List<OrdersViewModel>? ReadList(OrderSearchModel? model);
OrdersViewModel? ReadElement(OrderSearchModel model);
bool Create(OrdersBindingModel model);
bool Update(OrdersBindingModel model);
bool Delete(OrdersBindingModel model);
}
}

View File

@ -6,16 +6,16 @@ namespace FurnitureContracts.StoragesContracts
{
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
{
public class SalesSalonsModel : ISalesSalonsModel
public class SalesSalonsViewModel : ISalesSalonsModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;

View File

@ -9,6 +9,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureFactoryDataModels"
EndProject
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
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -27,6 +29,10 @@ Global
{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.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
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE