Ejemplo n.º 1
0
        public async Task <IActionResult> Get()
        {
            try
            {
                var result = await _aircraftService.GetAllAsync();

                return(new OkObjectResult(result));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message);
                return(BadRequest());
            }
        }