добавила контракты
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CarCenterContracts.BindingModels
|
||||||
|
{
|
||||||
|
public class AdministratorBindingModel : IAdministratorModel
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string AdministratorFIO { get; set; } = string.Empty;
|
||||||
|
public string AdministratorNumber { get; set; } = string.Empty;
|
||||||
|
public string AdministratorLogin { get; set; } = string.Empty;
|
||||||
|
public string AdministratorEmail { get; set; } = string.Empty;
|
||||||
|
public string AdministratorPassword { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CarCenterContracts.BindingModels
|
||||||
|
{
|
||||||
|
public class CarBindingModel : ICarModel
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string BrandCar { get; set; } = string.Empty;
|
||||||
|
public string Model { get; set; } = string.Empty;
|
||||||
|
public int AdministratorId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CarCenterContracts.BindingModels
|
||||||
|
{
|
||||||
|
public class EquipmentBindingModel : IEquipmentModel
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string EquipmentName { get; set; } = string.Empty;
|
||||||
|
public double EquipmentPrice { get; set; }
|
||||||
|
public int AdministratorId { get; set; }
|
||||||
|
public int? PreSaleWorkId { get; set; }
|
||||||
|
public Dictionary<int, ICarModel> EquipmentCars { get; set; } = new();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CarCenterContracts.BindingModels
|
||||||
|
{
|
||||||
|
public class InspectionBindingModel : IInspectionModel
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string InspectionName { get; set; } = string.Empty;
|
||||||
|
public DateTime? InspectionDate { get; set; }
|
||||||
|
public int AdministratorId { get; set; }
|
||||||
|
public int? EmployeeId { get; set; }
|
||||||
|
public Dictionary<int, ICarModel> InspectionCars { get; set; } = new();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,7 +7,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="BindingModels\" />
|
|
||||||
<Folder Include="BusinessLogicsContracts\" />
|
<Folder Include="BusinessLogicsContracts\" />
|
||||||
<Folder Include="SearchModels\" />
|
<Folder Include="SearchModels\" />
|
||||||
<Folder Include="StoragesContracts\" />
|
<Folder Include="StoragesContracts\" />
|
||||||
|
|||||||
Reference in New Issue
Block a user