public ActionResult <int> ScheduleTrip(TripRequest trip) { _logger.LogInformation("scheduleTrip request: {request}", JsonSerializer.Serialize(trip)); if (_schedulingSrv == null) { return(StatusCode(503, "Service temporarily down. Please try again later.")); } int elevatorId = _schedulingSrv.ScheduleTrip(trip.origin, trip.destination); return(Ok(elevatorId)); }