Exemple #1
0
        // GET: Expense/Edit/5
        public ActionResult Edit(int id)
        {
            ExpenseDB expenseDb = new ExpenseDB(_configuration);
            User      user      = _accessor.HttpContext.Session.GetObjectFromJson <User>("LoggedInUser");

            ViewBag.Type = user.RoleId;
            return(View(expenseDb.GetExpenseById(id)));
        }
Exemple #2
0
        // GET: Expense/Details/5
        public ActionResult Details(int id)
        {
            ExpenseDB expenseDb = new ExpenseDB(_configuration);

            return(View(expenseDb.GetExpenseById(id)));
        }