public ActionResult Atualizar(int id)
        {
            var           beneficiariosDAO = new BeneficiariosDAO();
            Beneficiarios beneficiarios    = beneficiariosDAO.BuscaPorId(id);

            return(View(beneficiarios));
        }
        public ActionResult Remover(int id)
        {
            var           beneficiarioDAO = new BeneficiariosDAO();
            Beneficiarios beneficiarios   = beneficiarioDAO.BuscaPorId(id);

            beneficiarioDAO.Remover(beneficiarios);

            return(RedirectToAction("Lista", "Familia"));
        }
        public ActionResult Visualizar(int id)
        {
            var beneficiarioDAO = new BeneficiariosDAO();
            var beneficiario    = beneficiarioDAO.BuscaPorId(id);

            ViewBag.Beneficiario = beneficiario;

            return(View());
        }
        public ActionResult Alterar(int id)
        {
            var           beneficiariosDAO = new BeneficiariosDAO();
            Beneficiarios beneficiarios    = beneficiariosDAO.BuscaPorId(id);

            ViewBag.Beneficiarios = beneficiarios;

            var dao     = new FamiliaDAO();
            var familia = dao.BuscaPorId(beneficiarios.FamiliaId);

            ViewBag.Familia = familia;

            return(View(beneficiarios));
        }