コード例 #1
0
        public async Task <IActionResult> GetAll()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var bancos = await _proveedorRepositorio.ObtenerTodos();

            if (bancos == null)
            {
                return(NotFound());
            }

            return(Ok(bancos));
        }