예제 #1
0
        public JsonResult Search(Guid aircraftProviderId, string tailNumber)
        {
            var aircrafts = _aircraftService.Search(aircraftProviderId, tailNumber);

            return(new JsonResult(aircrafts.Select(aircraft => new
            {
                id = aircraft.Id,
                name = aircraft.TailNumber,
            })));
        }