예제 #1
0
        public IActionResult ListarTodos()
        {
            try
            {
                var result = _service.FindAll();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.InnerException.ToString()));
            }
        }