public async Task <IActionResult> UpdateStation(int id, string name, double lat, double lng, int tblRouteID, string direction, int isMainterminal) { try { return(Ok(await _stationRepository.UpdateStation(id, name, lat, lng, tblRouteID, direction, isMainterminal))); } catch (Exception ex) { return(BadRequest(ex)); } }