Exemple #1
0
        // GET: Balance
        public ActionResult Index()
        {
            BalancaViewModel balance = new BalancaViewModel {
                Meses = CalcularMes(),
                SubCategoriaIngreso = _repoSubCategoria.ListarFijasIngreso(),
                SubCategoriaEgreso  = _repoSubCategoria.ListarFijasEgreso(),
            };

            balance.Cantidad.Egresos  = balance.SubCategoriaEgreso.Count();
            balance.Cantidad.Ingresos = balance.SubCategoriaIngreso.Count();
            balance.MontoTotal        = _repoCuentas.CalcularTotal();
            return(View(balance));
        }
Exemple #2
0
 // GET: Cuenta
 public ActionResult Index()
 {
     ViewBag.Total = _repository.CalcularTotal();
     ViewBag.Menu  = GeneraMenu();
     return(View(_repository.Listar()));
 }