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)); }
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)); }