public static PersonalizationPath Load(Int32 personalizationPathId, bool useCache)
        {
            if (personalizationPathId == 0)
            {
                return(null);
            }
            PersonalizationPath personalizationPath = null;
            string key = "PersonalizationPath_" + personalizationPathId.ToString();

            if (useCache)
            {
                personalizationPath = ContextCache.GetObject(key) as PersonalizationPath;
                if (personalizationPath != null)
                {
                    return(personalizationPath);
                }
            }
            personalizationPath = new PersonalizationPath();
            if (personalizationPath.Load(personalizationPathId))
            {
                if (useCache)
                {
                    ContextCache.SetObject(key, personalizationPath);
                }
                return(personalizationPath);
            }
            return(null);
        }
        public static bool Delete(Int32 personalizationPathId)
        {
            PersonalizationPath personalizationPath = new PersonalizationPath();

            if (personalizationPath.Load(personalizationPathId))
            {
                return(personalizationPath.Delete());
            }
            return(false);
        }