diff --git a/CarCenter/CarCenterContracts/ViewModels/EmployeeViewModel.cs b/CarCenter/CarCenterContracts/ViewModels/EmployeeViewModel.cs index 525cc3b..55e01aa 100644 --- a/CarCenter/CarCenterContracts/ViewModels/EmployeeViewModel.cs +++ b/CarCenter/CarCenterContracts/ViewModels/EmployeeViewModel.cs @@ -15,15 +15,15 @@ namespace CarCenterContracts.ViewModels public int ManagerId { get; set; } public int Id { get; set; } - public Dictionary EmployeeSales { get; set; } = new(); - public Dictionary EmployeeEmployeeBooking { get; set; } + public Dictionary EmployeeSale { get; set; } = new(); + public Dictionary EmployeeInspection { get; set; } public EmployeeViewModel() { } [JsonConstructor] - public EmployeeViewModel(Dictionary EmployeeSales) + public EmployeeViewModel(Dictionary 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); } } } diff --git a/CarCenter/CarCenterContracts/ViewModels/PreSaleWorkModel.cs b/CarCenter/CarCenterContracts/ViewModels/PreSaleWorkModel.cs index 31ec23c..bceb89d 100644 --- a/CarCenter/CarCenterContracts/ViewModels/PreSaleWorkModel.cs +++ b/CarCenter/CarCenterContracts/ViewModels/PreSaleWorkModel.cs @@ -22,9 +22,9 @@ namespace CarCenterContracts.ViewModels public PreSaleWorkModel() { } [JsonConstructor] - public PreSaleWorkModel(Dictionary PreSaleWorkSales, Dictionary PreSaleWorkCars) + public PreSaleWorkModel(Dictionary PreSaleWorkSale, Dictionary 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); } }