Исправления классов BindingModels, создание Search моделей

This commit is contained in:
Валерия Никифорова 2023-01-31 20:54:44 +04:00
parent b63d5b4685
commit c274a90766
7 changed files with 44 additions and 5 deletions

View File

@ -11,9 +11,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="BindingModels\" />
<Folder Include="BusinessLogicsContracts\" /> <Folder Include="BusinessLogicsContracts\" />
<Folder Include="SearchModels\" />
<Folder Include="StoragesContracts\" /> <Folder Include="StoragesContracts\" />
<Folder Include="ViewModels\" /> <Folder Include="ViewModels\" />
</ItemGroup> </ItemGroup>

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace AircraftPlantContracts.BindingModels namespace AircraftPlantContracts.BindingModels
{ {
internal class ComponentBindingModel : IComponentModel public class ComponentBindingModel : IComponentModel
{ {
public string ComponentName { get; set; } = string.Empty; public string ComponentName { get; set; } = string.Empty;

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace AircraftPlantContracts.BindingModels namespace AircraftPlantContracts.BindingModels
{ {
internal class OrderBindingModel : IOrderModel public class OrderBindingModel : IOrderModel
{ {
public int PlaneId { get; set; } public int PlaneId { get; set; }

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace AircraftPlantContracts.BindingModels namespace AircraftPlantContracts.BindingModels
{ {
internal class PlaneBindingModel : IPlaneModel public class PlaneBindingModel : IPlaneModel
{ {
public string PlaneName { get; set; } = string.Empty; public string PlaneName { get; set; } = string.Empty;

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.SearchModels
{
public class ComponentSearchModel
{
public int? Id { get; set; }
public string? ComponentName { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.SearchModels
{
public class OrderSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.SearchModels
{
public class PlaneSearchModel
{
public int? Id { get; set; }
public string? PlaneName { get; set; }
}
}