コード例 #1
0
        // 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));
        }
コード例 #2
0
 public IEnumerable <ExpenseGroup> GetAll()
 {
     return(_expenseGroupService.GetAll());
 }