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