예제 #1
0
        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());
        }
예제 #2
0
        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));
        }