Esempio n. 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));
        }
Esempio n. 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));
        }