Ejemplo n.º 1
0
        public ActionResult <IEnumerable <ErrorDTO> > Get()
        {
            try
            {
                var response = _errorManager.GetAll();

                return(Ok(response));
            }
            catch (NoContentException)
            {
                return(NoContent());
            }
            catch (ErrorNotFoundException)
            {
                return(NotFound());
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }