示例#1
0
        private Task <UserLoginInfo> GetUserLoginInfoAsync(UpdateUnauthenticatedUserPasswordCommand command, IExecutionContext executionContext)
        {
            var query = new GetUserLoginInfoIfAuthenticatedQuery()
            {
                UserAreaCode = command.UserAreaCode,
                Username     = command.Username,
                Password     = command.OldPassword,
            };

            return(_queryExecutor.ExecuteAsync(query));
        }
示例#2
0
        private Task <UserLoginInfo> GetUserLoginInfoAsync(LogUserInWithCredentialsCommand command, IExecutionContext executionContext)
        {
            var query = new GetUserLoginInfoIfAuthenticatedQuery()
            {
                UserAreaCode = command.UserAreaCode,
                Username     = command.Username,
                Password     = command.Password,
            };

            return(_queryExecutor.ExecuteAsync(query));
        }