доработки

This commit is contained in:
spacyboy 2024-04-28 16:57:59 +04:00
parent 3998ed4bf8
commit 4202c78a7f
2 changed files with 6 additions and 6 deletions

View File

@ -15,15 +15,15 @@ namespace CarCenterContracts.ViewModels
public int ManagerId { get; set; }
public int Id { get; set; }
public Dictionary<int, ISaleModel> EmployeeSales { get; set; } = new();
public Dictionary<int, IEmployeeBookingModel> EmployeeEmployeeBooking { get; set; }
public Dictionary<int, ISaleModel> EmployeeSale { get; set; } = new();
public Dictionary<int, IEmployeeInspectionModel> EmployeeInspection { get; set; }
public EmployeeViewModel() { }
[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);
}
}
}

View File

@ -22,9 +22,9 @@ namespace CarCenterContracts.ViewModels
public PreSaleWorkModel() { }
[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);
}
}