// GET: Cadastros
        public ActionResult Index()
        {
            CadastroRepository cadastroRepository = new CadastroRepository();
            var cadastros = cadastroRepository.GetAll();

            ViewBag.qtd = cadastros.Count;
            return(View(cadastros));
        }
        public IActionResult Index()
        {
            var cad1 = _repository.GetAll();

            return(View(cad1));
        }