Exemple #1
0
        public static CmsSite SaveSite(CmsSite obj)
        {
            BaseService.CheckSite();
            if (SessionObject.CurrentBitplateUser == null)
            {
                HttpContext.Current.Response.Redirect("~/_bitplate/Login.aspx?SessionExpired=true");
            }
            obj.Save();

            //foreach (CmsLanguage lang in SessionObject.CurrentSite.Languages)
            //{
            //    lang.Delete();
            //}
            SessionObject.CurrentSite = obj;
            //bij wijzigingen in veld licentiecode
            if (SessionObject.CurrentLicense != null && SessionObject.CurrentLicense.Code != obj.LicenceCode)
            {
                //herladen van licentie moet worden afgedwongen
                SessionObject.CurrentLicense = SessionObject.LoadLicense();
            }
            SessionObject.CurrentSite.IsValidLicense = (SessionObject.CurrentLicense != null);


            return(SessionObject.CurrentSite);
        }