public async UnaryResult <OperationResult> AddAsync(CreateTarefaCommand command)
 {
     return(await _mediator.Send(command));
 }
Exemplo n.º 2
0
 public Task <int> Create([FromBody] CreateTarefaCommand command) => _mediator.Send(command);