public ActionResult UpdateParkingAsync([FromBody] ParkingUpdateRequest request) { //call parkingService to update the values into postgresql database parkingService.updateParking(request.id, request.MallID, request.sname, request.Bname, request.parking); return(Ok()); }
public async Task <ActionResult> UpdateParkingAsync([FromBody] ParkingUpdateRequest request) { //call parkingService to update the values into postgresql database parkingService.updateParking(request.id, request.MallID, request.sname, request.Bname, request.parking); // updating the parking slot in database by Jahari's side //call createvsn to create the vsn file _createVsnService.createVSN(request.id, false); //update physical board await _colorlightServices.SendProgramAsync(request.id, false); return(Ok()); }