Example #1
0
        public IActionResult MonthlyExpense(string month, string year)
        {
            List <Expense> monthlyReport = expenseManager.MonthlyIncome(month, year);
            decimal        totalExpense  = CalculateAmount.Calculate(monthlyReport);

            ViewBag.TotalExpense  = totalExpense;
            ViewBag.MonthlyReport = monthlyReport;
            ViewBag.YearList      = expenseManager.GetYearList();
            return(View());
        }