mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-05 23:44:00 +00:00
WebServiceZonesApi: code refactoring changes.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user