public ActionResult Create(CreatePortalRequest Data) { CreatePortalRequest request = new CreatePortalRequest { SiteName = Data.SiteName, SiteAlias = Data.SiteAlias, IsChildSite = false, HomeDirectory = "Portals/[PortalID]", UseCurrentUserAsAdmin = Data.UseCurrentUserAsAdmin }; if (!request.UseCurrentUserAsAdmin) { request.Username = Data.Email; request.Email = Data.Email; request.Firstname = Data.Firstname; request.Lastname = Data.Lastname; request.Password = Data.Password; request.PasswordConfirm = Data.PasswordConfirm; } return(SitesManager.CreatePortal(request)); }