/// <summary> /// Obtains the service configuration records for the specified domain. /// </summary> /// <param name="domain">Name of the domain</param> /// <returns>A collection of service configuration records for the specified domain in JSON.</returns> public async Task <PartialViewResult> ConfigurationRecords(string customerId, string domain) { GraphClient client; List <DomainDnsRecord> records; try { client = new GraphClient(Provider, customerId); records = await client.GetDomainConfigurationRecordsAsync(domain).ConfigureAwait(false); return(PartialView(new ConfigurationRecordsModel { ServiceConfigurationRecords = records })); } finally { client = null; records = null; } }