+ BindingModels
+ Edit DataModels
This commit is contained in:
parent
50b737db72
commit
9a0d8d4e50
@ -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();
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -7,7 +7,6 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BindingModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
<Folder Include="SearchModels\" />
|
||||
<Folder Include="StoragesContracts\" />
|
||||
|
Loading…
Reference in New Issue
Block a user