public async Task <ActionResult> UpdateTravelTimeAsync([FromBody] TravelTimeUpdateRequest request) { //call traveltimeService to update the values into postgresql database traveltimeService.updateTravelTime(request.id, request.eventType, request.sname, request.name, request.datetime, request.eta); //call createvsn to create the vsn file _createVsnService.createVSN(request.id, false); //update physical board await _colorlightServices.SendProgramAsync(request.id, false); return(Ok()); }
public ActionResult UpdateTravelTimeAsync([FromBody] TravelTimeUpdateRequest request) { Console.WriteLine("\n\n---[TRAVELTIME] ENDPOINT CALLED---"); string userInput = string.Format( "\nDestinationId: {0}" + "\nEventType(?): {1}" + "\nSname: {2}" + "\nName: {3}" + "\nDatetime: {4}" + "\nETA: {5}", request.id, request.eventType, request.sname, request.name, request.datetime, request.eta); Console.WriteLine(userInput); //call traveltimeService to update the values into postgresql database traveltimeService.updateTravelTime(request.id, request.eventType, request.sname, request.name, request.datetime, request.eta); Console.WriteLine("\nExecution OK\n"); return(Ok()); }