Пример #1
0
        public async Task <IActionResult> Listar()
        {
            try
            {
                var list = await _repository.BuscarTodos();

                return(new OkObjectResult(list));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }