public ActionResult Lista(int id) { ViewBag.Familia = id; var beneficiariosDAO = new BeneficiariosDAO(); var beneficiarios = beneficiariosDAO.Lista(); ViewBag.Beneficiarios = beneficiarios; return(View(beneficiarios)); }
// GET: Beneficiarios public ActionResult Formulario(int id) { var familiaDAO = new FamiliaDAO(); var familia = familiaDAO.BuscaPorId(id); ViewBag.Familia = familia; var beneficiariosDAO = new BeneficiariosDAO(); var beneficiarios = beneficiariosDAO.Lista(); ViewBag.Beneficiarios = beneficiarios; return(View()); }
// GET: Recibo public ActionResult Gerar(int id) { ViewBag.FamiliaId = id; var beneficiariosDAO = new BeneficiariosDAO(); var beneficiarios = beneficiariosDAO.Lista(); ViewBag.Beneficiarios = beneficiarios; var listaRecibo = new Recibo().CalcularPorFamiliaPorContrato(id); var soma = listaRecibo.Sum(x => x._tabelaDeValores.Valor); ViewBag.Soma = soma; return(View(beneficiarios)); }
public ActionResult Finalizar(int id) { var familiadao = new FamiliaDAO(); var familia = familiadao.BuscaPorId(id); ViewBag.Familia = familia; var beneficiariosDAO = new BeneficiariosDAO(); var beneficiarios = beneficiariosDAO.Lista(); ViewBag.Beneficiarios = beneficiarios; var listaRecibo = new Recibo().CalcularPorFamiliaPorContrato(id); var soma = listaRecibo.Sum(x => x._tabelaDeValores.Valor); ViewBag.Soma = soma; return(View(beneficiarios)); }