public async Task <CommandResult> NameTodoItem([FromBody] NameTodoList cmd) { return(await _mediator.Send(cmd)); }
public async Task <CommandResult> Handle(NameTodoList c, CancellationToken t) { return(await Execute(c, todoList => todoList.NameTodoList(c.Name))); }