From 4202c78a7f8618e9032450a93539ff3e38183cc7 Mon Sep 17 00:00:00 2001 From: spacyboy Date: Sun, 28 Apr 2024 16:57:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CarCenterContracts/ViewModels/EmployeeViewModel.cs | 8 ++++---- .../CarCenterContracts/ViewModels/PreSaleWorkModel.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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); } }