public TodoList[] Handle(GetTodoLists query) { return(_database.Set <TodoList>().Where(list => list.Items.Any()).ToArray()); }
public int[] Handle(ActiveTableNumbers query) { return(_database.Set <Tab>().Select(x => x.TableNumber).ToArray()); }