public static AdminDomainAttributes AdminGetClient(Uri url) { AdminDomainAttributes Dm = new AdminDomainAttributes(); RossSoft.Utility.AppConfig app = RossSoft.Utility.AppSettings(); bool IsLive = Convert.ToBoolean(app.TypeSwitcher); url = GetUrl(url, IsLive, true); Dm = AdminSplitUrl(url); return(Dm); }
public static AdminDomainAttributes AdminSplitUrl(Uri url) { AdminDomainAttributes Dm = new AdminDomainAttributes(); ClientAttributes client = new ClientAttributes(); string host = url.Host; Dm.Length = host.Split('.').Length; switch (Dm.Length) { case 3: client = GetClientInfo(host.Split('.')[0]); Dm.DmID = client.ID; Dm.DmName = client.Name; Dm.Subdm = client.Subdm; break; default: myredirect("Invalid Url Contact Administration."); break; } return(Dm); }