+ BindingModels

+ Edit DataModels
This commit is contained in:
spacyboy 2024-04-26 21:27:52 +04:00
parent 50b737db72
commit 9a0d8d4e50
7 changed files with 70 additions and 3 deletions

View File

@ -0,0 +1,17 @@
using CarCenterDataModels.Models;
namespace CarCenterContracts.BindingModels
{
public class EmployeeBindingModel : IEmployeeModel
{
public int Id { get; set; }
public string EmployeeFIO { get; set; } = string.Empty;
public string Specialization { get; set; } = string.Empty;
public int ManagerId { get; set; }
public Dictionary<int, ISaleModel> EmployeeSale { get; set; } = new();
}
}

View File

@ -0,0 +1,19 @@
using CarCenterDataModels.Models;
namespace CarCenterContracts.BindingModels
{
public class ManagerBindingModel : IManagerModel
{
public int Id { get; set; }
public string ManagerFIO { get; set; } = string.Empty;
public string ManagerNumber { get; set; } = string.Empty;
public string ManagerLogin { get; set; } = string.Empty;
public string ManagerEmail { get; set; } = string.Empty;
public string ManagerPassword { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,17 @@
using CarCenterDataModels.Models;
namespace CarCenterContracts.BindingModels
{
public class PreSaleWorkBindingModel : IPreSaleWorkModel
{
public int Id { get; set; }
public string PreSaleWorkType { get; set; } = string.Empty;
public double PreSaleWorkPrice { get; set; }
public int ManagerId { get; set; }
public Dictionary<int, ISaleModel> PreSaleWorkSale { get; set; } = new();
}
}

View File

@ -0,0 +1,15 @@
using CarCenterDataModels.Models;
namespace CarCenterContracts.BindingModels
{
public class SaleBindingModel : ISaleModel
{
public int Id { get; set; }
public DateTime SaleDate { get; set; } = DateTime.Empty;
public string SalePrice { get; set; } = string.Empty;
public int ManagerId { get; set; }
}
}

View File

@ -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\" />