public ActionResult PortalStyle_Template() { if (DomainContext.Online == false) { return(RedirectToAction("Docking")); } PortalStyle_TemplateViewModel model = new PortalStyle_TemplateViewModel(); if (String.IsNullOrEmpty(DomainContext.AppId) == false) { model.Settings = _portalManager.GetPortalStyleSettings(UserContext.User.Domain, DomainContext.AppId); } else { model.Settings = new PortalStyleSettingsEntity(); } //if (model.Settings.PortalPresetTemplateId.HasValue) //{ // model.Template = _portalTemplatePool.GetPortalPresetTemplateDigest(model.Settings.PortalPresetTemplateId.Value); //} //else //{ // model.Template = _portalTemplatePool.GetDefaultPortalPresetTemplate(); //} return(View(model)); }