Beispiel #1
0
 public async Task <CommandResult> NewTodoList([FromBody] CheckTodoItem cmd)
 {
     return(await _mediator.Send(cmd));
 }
Beispiel #2
0
 public async Task <CommandResult> Handle(CheckTodoItem c, CancellationToken t)
 {
     return(await Execute(c, todoList => todoList.CheckTodoItem(c.ItemNumber)));
 }