nameserver type fix.

This commit is contained in:
2022-12-14 16:55:08 +03:00
parent 833bb183eb
commit ea9b760933
5 changed files with 34 additions and 5 deletions

View File

@@ -5,7 +5,8 @@ using System;
public class Nameserver {
public int Id { get; }
public string Name { get; }
public string[] NameSevers { get; }
public string[] NameServers { get; }
public string Description { get; }
public string Permissions { get; }
public DateTime? EditDate { get; }
@@ -13,12 +14,14 @@ public class Nameserver {
int id,
string name,
string nameServers,
string description,
string permissions,
DateTime? editDate
) {
this.Id = id;
this.Name = name;
this.NameSevers = nameServers.Split(';');
this.NameServers = nameServers.Split(new char[] {';'});
this.Description = description;
this.Permissions = permissions;
this.EditDate = editDate;
}