Пример #1
0
        public ActionResult Counter()
        {
            ExpenseTrackerIdentity ident = User.Identity as ExpenseTrackerIdentity;
            DashboardCounter       model = new DashboardCounter();

            model.ExpenseCount      = _expenseService.ExpenseCount(ident.UserId);
            model.CategoryCount     = _categoryService.CategoryCount(ident.UserId);
            model.TotalExpenseToday = _expenseService.GetTotalExpenseToday(ident.UserId);
            model.TotalExpense      = _expenseService.GetTotalExpense(ident.UserId);
            return(PartialView("_counter", model));
        }