public IQApplication CreateApplication(string qbName, string qbDescription, CreateApplicationToken createApplicationToken) { var createToken = Convert.ToBoolean(createApplicationToken); var createDb = new CreateDatabase(Ticket, AccountDomain, qbName, qbDescription, createToken); var xml = createDb.Post().CreateNavigator(); string token = null; if (createToken) { token = xml.SelectSingleNode("/qdbapi/apptoken").Value; } var applicationId = xml.SelectSingleNode("/qdbapi/appdbid").Value; return(Connect(applicationId, token)); }