доработки
This commit is contained in:
parent
3998ed4bf8
commit
4202c78a7f
@ -15,15 +15,15 @@ namespace CarCenterContracts.ViewModels
|
|||||||
public int ManagerId { get; set; }
|
public int ManagerId { get; set; }
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public Dictionary<int, ISaleModel> EmployeeSales { get; set; } = new();
|
public Dictionary<int, ISaleModel> EmployeeSale { get; set; } = new();
|
||||||
public Dictionary<int, IEmployeeBookingModel> EmployeeEmployeeBooking { get; set; }
|
public Dictionary<int, IEmployeeInspectionModel> EmployeeInspection { get; set; }
|
||||||
|
|
||||||
public EmployeeViewModel() { }
|
public EmployeeViewModel() { }
|
||||||
|
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public EmployeeViewModel(Dictionary<int, SaleViewModel> EmployeeSales)
|
public EmployeeViewModel(Dictionary<int, SaleViewModel> EmployeeSale)
|
||||||
{
|
{
|
||||||
this.EmployeeSales = EmployeeSales.ToDictionary(x => x.Key, x => x.Value as ISaleModel);
|
this.EmployeeSale = EmployeeSale.ToDictionary(x => x.Key, x => x.Value as ISaleModel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,9 @@ namespace CarCenterContracts.ViewModels
|
|||||||
public PreSaleWorkModel() { }
|
public PreSaleWorkModel() { }
|
||||||
|
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public PreSaleWorkModel(Dictionary<int, SaleViewModel> PreSaleWorkSales, Dictionary<int, CarViewModel> PreSaleWorkCars)
|
public PreSaleWorkModel(Dictionary<int, SaleViewModel> PreSaleWorkSale, Dictionary<int, CarViewModel> PreSaleWorkCars)
|
||||||
{
|
{
|
||||||
this.PreSaleWorkSale = PreSaleWorkSales.ToDictionary(x => x.Key, x => x.Value as ISaleModel);
|
this.PreSaleWorkSale = PreSaleWorkSale.ToDictionary(x => x.Key, x => x.Value as ISaleModel);
|
||||||
this.PreSaleWorkCars = PreSaleWorkCars.ToDictionary(x => x.Key, x => x.Value as ICarModel);
|
this.PreSaleWorkCars = PreSaleWorkCars.ToDictionary(x => x.Key, x => x.Value as ICarModel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user