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