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