public ActionResult Upload(int id) { ExpenseManager expenseManager = new ExpenseManager(); ViewBag.ExpenseSummaryName = expenseManager.GetExpenseSummaryName(id); ViewBag.ExpenseSummaryID = id; ViewBag.Category = new SelectList(expenseManager.GetExpenseCategory(), "ID", "Name"); return(View()); }
public ActionResult Detail(int id) { TempData["Message"] = null; ExpenseDetail obj = new ExpenseDetail(); obj.HasBill = true; ExpenseManager expenseManager = new ExpenseManager(); ViewBag.ExpenseSummaryName = expenseManager.GetExpenseSummaryName(id); ViewBag.ExpenseSummaryID = id; ViewBag.Category = new SelectList(expenseManager.GetExpenseCategory(), "ID", "Name"); return(View(obj)); }