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