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

            return(result);
        }
Exemple #2
0
        public async Task <ICommandResult> Post([FromBody] CriarUsuarioCommand command)
        {
            var result = (CriarUsuarioCommandResult)await _handler.HandleAsync(command);

            return(result);
        }