Example #1
0
        public async Task <IActionResult> Index()
        {
            var vm = new AdminViewModel();

            vm.ProductosAsignados = await _productsrepository.GetCOUNT();

            vm.ClientesActivos = await _adminrepository.GetCOUNTactive();

            vm.ClientesInactivos = await _adminrepository.GetCOUNTinactive();

            vm.Pagoshoy = await _pagosrepository.GetCOUNTtoday();

            vm.PagosTotales = await _pagosrepository.GetCOUNTall();

            vm.Transaccioneshoy = await _transrepository.GetCOUNTtoday();

            vm.Transaccionestotal = await _transrepository.GetCOUNTall();

            return(View(vm));
        }