Правочки
This commit is contained in:
parent
e6e1457eef
commit
d5f8d5f99b
@ -18,6 +18,8 @@ namespace ServiceStationContracts.BindingModels
|
||||
|
||||
public int ExecutorId { get; set; }
|
||||
|
||||
public int? RepairId { get; set; }
|
||||
|
||||
public Dictionary<int, ICarModel> DefectCars { get; set; } = new();
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,8 @@ namespace ServiceStationContracts.ViewModels
|
||||
|
||||
public int ExecutorId { get; set; }
|
||||
|
||||
public int? RepairId { get; set; }
|
||||
|
||||
public Dictionary<int, ICarModel> DefectCars { get; set; } = new();
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ namespace ServiceStationDataModels.Models
|
||||
string DefectType { get; }
|
||||
double DefectPrice { get; }
|
||||
int ExecutorId { get; }
|
||||
int? RepairId { get; }
|
||||
public Dictionary<int, ICarModel> DefectCars { get; }
|
||||
}
|
||||
}
|
||||
|
@ -66,6 +66,11 @@ namespace ServiceStationDatabaseImplement.Models
|
||||
public void Update(DefectBindingModel model)
|
||||
{
|
||||
if(model == null) return;
|
||||
if (model.RepairId.HasValue)
|
||||
{
|
||||
RepairId = model.RepairId;
|
||||
return;
|
||||
}
|
||||
DefectType = model.DefectType;
|
||||
DefectPrice = model.DefectPrice;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user