public IActionResult TagIds(string tag) { var ids = _eventStore.AggregateList(tag); ViewBag.Title = tag; return(View(ids)); }
public IEnumerable <Department> Query(Expression <Func <Department, bool> > filter = null) { if (filter == null) { filter = x => true; } var ids = _eventStore.AggregateList(tag); var departments = GetAllDepartments(ids); return(departments.Where(x => x.IsActive).Where(filter?.Compile())); }