// GET: ExpenseTracker public ActionResult Index() { var groups = _groupService.GetAll().ToList().Select(x => new ExpenseGroupVM { Id = x.Id, Name = x.Name, HasExpenses = _expenseItemService.HasExpenseAdded(x.Id) });; return(View(groups)); }
public IEnumerable <ExpenseGroup> GetAll() { return(_expenseGroupService.GetAll()); }