Пример #1
0
        public DepartureDetails GetDetails(int id)
        {
            var departure = GetById(id);
            var flight    = _flightService.GetById(departure.FlightId);
            var crew      = _crewService.GetDetails(departure.CrewId);
            var plane     = _planeService.GetDetails(departure.PlaneId);

            return(DepartureDetails.Create(departure, flight, plane, crew));
        }
Пример #2
0
        public IActionResult GetDetails(int id)
        {
            var entites = _planeService.GetDetails(id);

            return(Json(entites));
        }