public void Apply(Tenant t) { t.Enabled = Enabled; t.Name = Name; t.Database = Database; t.Match = Match.Where(x => !String.IsNullOrEmpty(x)).ToArray(); t.EmailDomain = EmailDomain; }
public static TenantEditModel FromDomain(Tenant t) { return new TenantEditModel { Enabled = t.Enabled, Name = t.Name, Database = t.Database, Match = t.Match, EmailDomain = t.EmailDomain }; }