public async Task <ElevatorDto> GetElevatorStatus(int id) { return(await _elevatorService.GetElevatorStatus(id)); }
public IActionResult GetElevatorStatus([FromQuery] int id) { var response = _elevatorService.GetElevatorStatus(id); return(Ok(response)); }