public async Task <FlightConsumption> GetFlightConsumptionAsync(int id, int planeId, CancellationToken ct)
        {
            var flight = await _flightServices.GetById(id, ct);

            var plane = await _aeroplaneServices.GetById(planeId, ct);

            var distance = flight.GetFlightDistance();

            return(new FlightConsumption()
            {
                Aeroplane = plane,
                Flight = flight,
                DistanceNmi = distance,
                Consumption = plane.GetPlaneConsumption(distance)
            });
        }
 public async Task <Aeroplane> GetAeroplaneAsync(int id, CancellationToken ct)
 {
     return(await _aeroplaneServices.GetById(id, ct));;
 }