protected void SetCategoryById(int templateId)
        {
            int languageId = 0;

            if (NopContext.Current != null)
            {
                languageId = NopContext.Current.WorkingLanguage.LanguageId;
            }
            string key = string.Format(CATEGORIES_BY_ID_KEY, category.CategoryId, languageId);

            category.TemplateId = templateId;
            object obj2 = NopCache.Get(key);

            if (CategoryManager.CategoriesCacheEnabled)
            {
                if (obj2 != null)
                {
                    NopCache.Remove(key);
                }
                NopCache.Max(key, category);
            }
        }