コード例 #1
0
        public GerencCommandResult UpdatePassword(
            [FromBody] AlterarSenha command,
            [FromServices] AlterarSenhaHandler handler
            )
        {
            var idUsuario = HttpContext.User.Claims.FirstOrDefault(c => c.Type == JwtRegisteredClaimNames.Jti);

            command.IdUsuario = new Guid(idUsuario.Value);

            return((GerencCommandResult)handler.Handle(command));
        }
 public GenericCommandResult UpdatePassword(AlterarSenhaCommand command, [FromServices] AlterarSenhaHandler handle)
 {
     return((GenericCommandResult)handle.Handler(command));
 }