WebServiceZonesApi: code refactoring changes.

This commit is contained in:
Shreyas Zare
2024-09-15 15:16:43 +05:30
parent 86653de0cd
commit ab63df6599

View File

@@ -4325,9 +4325,7 @@ namespace DnsServerCore
recordInfo.LastModified = DateTime.UtcNow;
recordInfo.ExpiryTtl = expiryTtl;
if (disable)
recordInfo.Disabled = true;
recordInfo.Disabled = disable;
if (!string.IsNullOrEmpty(comments))
recordInfo.Comments = comments;
@@ -4345,7 +4343,8 @@ namespace DnsServerCore
break;
}
newRecord = zoneInfo.ApexZone.GetRecords(DnsResourceRecordType.SOA)[0]; //get updated record to return json
//get updated record to return json
newRecord = zoneInfo.ApexZone.GetRecords(DnsResourceRecordType.SOA)[0];
}
else
{