public async Task <DroneDto> DroneAtendePedido(Pedido pedido) { var originPoint = new Point(); var distance = _coordinateService.GetKmDistance(originPoint, pedido.GetPoint()); var drone = await _droneService.GetAvailiableDroneAsync(distance, pedido); if (drone == null) { return(null); } return(new DroneDto(drone, distance)); }