// GET: Expenses/Details/5
        public ActionResult Details(int id)
        {
            Expense expense = expenseRepository.GetByID(id);

            if (expense == null)
            {
                return(HttpNotFound());
            }
            return(View(expense));
        }
Exemplo n.º 2
0
 public Expense Get(String ExpenseName)
 {
     return(ExpenseRepository.GetByID(ExpenseName));
 }