public JsonResult GetAircraftModels(Guid aircraftTypeId, string keyword) { var models = _aircraftService.GetModels(aircraftTypeId, keyword); return(new JsonResult(models.Select(model => new { model.Id, model.Name }) .ToList())); }