public JsonResult GetAircraftTypes() { var types = _aircraftService.GetTypes(); return(new JsonResult(types.Select(type => new { type.Id, type.Name }) .ToList())); }
public JsonResult GetAircraftTypes() { var types = _aircraftService.GetTypes(); return(new JsonResult(types.Select(type => new { type.Id, type.Name }) .ToList())); }