public JsonResult GetAircraft(Guid aircraftId) { var aircraft = _aircraftService.Get(aircraftId); return(new JsonResult(new { aircraftId = aircraft.Id, modelName = aircraft.Model.Name, aircraft.ModelId, typeName = aircraft.Type.Name, aircraft.TypeId, aircraft.TailNumber, HomebaseName = aircraft.HomeBase.Name, HomebaseId = aircraft.HomeBase.Id, aircraft.PricePerHour, aircraft.ArgusSafetyRating, aircraft.WyvernSafetyRating, aircraft.ManufactureYear, aircraft.LastExtRefurbish, aircraft.LastIntRefurbish, aircraft.MaxPassengers, aircraft.HoursFlown, aircraft.Range, aircraft.Speed, aircraft.CargoCapability, wifi = aircraft.WiFi, bookableDemo = aircraft.BookableDemo, aircraft.NumberOfTelevision, images = aircraft.Images.OrderBy(img => img.Order) .Select(img => new { img.Name, img.Order, Url = _config["AircraftImagesUrl"] + img.FileName }) })); }