// 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))); }
// GET: Expense/Details/5 public ActionResult Details(int id) { ExpenseDB expenseDb = new ExpenseDB(_configuration); return(View(expenseDb.GetExpenseById(id))); }