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.")); }