public async Task <ICommandResult> Login([FromBody] AutenticarUsuarioCommand command) { var result = (AutenticarUsuarioCommandResult)await _usuarioHandler.HandleAsync(command); return(result); }
public async Task <ICommandResult> Post([FromBody] CriarUsuarioCommand command) { var result = (CriarUsuarioCommandResult)await _handler.HandleAsync(command); return(result); }