public ActionResult ExpenseForMonth(int?month, int?year) { ViewBag.monthDropDownList = ViewExtra.GenerateMonthList(); if (Convert.ToInt32(month) == 0 || Convert.ToInt32(year) == 0) { return(View()); } ExpenseManager expenseManager = new ExpenseManager(); ViewBag.ListOfAllExpenseOfMonth = expenseManager.GetListOfAllExpenseOfMonth(Convert.ToInt32(month), Convert.ToInt32(year)); return(View()); }
public ActionResult ExpenseForMonth() { ViewBag.monthDropDownList = ViewExtra.GenerateMonthList(); return(View()); }