Exemplo n.º 1
0
        public IActionResult Delete()
        {
            try
            {
                flightService.DeleteAll();
            }
            catch (Exception ex)
            {
                return(BadRequest(new { Type = ex.GetType().Name, ex.Message }));
            }

            return(NoContent());
        }