예제 #1
0
        public IActionResult Get(int id)
        {
            TypeAircraftDto TypeAircraft = service.GetById(id);

            if (TypeAircraft == null)
            {
                return(NotFound());
            }
            return(Ok(TypeAircraft));
        }
예제 #2
0
        public async Task <IActionResult> Get(int id)
        {
            TypeAircraftDto TypeAircraft = await service.GetById(id);

            if (TypeAircraft == null)
            {
                return(NotFound());
            }
            return(Ok(TypeAircraft));
        }