public ActionResult Index() { string domain = DbConvention.GetDomain(); var approved = new DomainSerializer("domains-approved.json"); var installed = new DomainSerializer("domains-installed.json"); if (!approved.Get().Contains(domain)) { return(this.HttpNotFound()); } if (installed.Get().Contains(domain)) { return(this.Redirect("/")); } InstallationFactory.Setup(domain); //Background job return(this.Content("Installing frapid, please visit the site after a few minutes.")); }
public ActionResult Index() { string domain = DbConvention.GetDomain(); var approved = new DomainSerializer("DomainsApproved.json"); var installed = new DomainSerializer("DomainsInstalled.json"); if (!approved.GetTenantMembers().Any(x => x.Equals(domain))) { return(this.HttpNotFound()); } if (installed.GetTenantMembers().Any(x => x.Equals(domain))) { return(this.Redirect("/")); } var setup = approved.Get().FirstOrDefault(x => x.GetSubtenants().Contains(domain.ToLowerInvariant())); InstallationFactory.Setup(setup); //Background job return(this.Content("Installing frapid, please visit the site after a few minutes.")); }
public ActionResult Index() { string domain = TenantConvention.GetDomain(); var approved = new ApprovedDomainSerializer(); var installed = new InstalledDomainSerializer(); if (!approved.GetMemberSites().Any(x => x.Equals(domain))) { return(this.HttpNotFound()); } if (installed.GetMemberSites().Any(x => x.Equals(domain))) { return(this.Redirect("/")); } var setup = approved.Get().FirstOrDefault(x => x.GetSubtenants().Contains(domain.ToLowerInvariant())); InstallationFactory.Setup(setup); //Background job return(this.Content(Resources.FrapidInstallationMessage)); }