Beispiel #1
0
 public IHttpActionResult Post(TruckViewModel truck)
 {
     _truckService.CreateTruck(truck);
     _maintenancePlanDetailService.UpdatePlan(truck.MaintenanceItems, "0", truck.TruckC);
     _inspectionPlanDetailService.Add(truck.Inspection, "0", truck.TruckC);
     return(Ok());
 }
Beispiel #2
0
 public void Post(TrailerViewModel trailer)
 {
     _trailerService.CreateTrailer(trailer);
     _maintenancePlanDetailService.UpdatePlan(trailer.MaintenanceItems, "1", trailer.TrailerC);
     _inspectionPlanDetailService.Add(trailer.Inspection, "1", trailer.TrailerC);
 }