public IActionResult createServiceMechanic([FromBody] onGoingService onGoingService)
 {
     if (ogs.createOnGoservMechanic(onGoingService))
     {
         return(Ok(ogs.viewOnGoingServ(onGoingService.statusOfVehicleId)));
     }
     else
     {
         return(Ok(false));
     }
 }
Ejemplo n.º 2
0
 public bool Update(onGoingService onGoingService)
 {
     context.onGoingServices.Update(onGoingService);
     return(context.SaveChanges() != 0 ? true : false);;
 }
Ejemplo n.º 3
0
 public bool Add(onGoingService onGoingService)
 {
     context.onGoingServices.Add(onGoingService);
     return(context.SaveChanges() != 0 ? true : false);
 }
Ejemplo n.º 4
0
 public bool createOnGoservMechanic(onGoingService onGoingService)
 => onGoingServ.Add(onGoingService);
Ejemplo n.º 5
0
 public bool updateOnGoServMechanic(onGoingService onGoingService)
 => onGoingServ.Update(onGoingService);