Example #1
0
        public JsonResult CloneContent(int sectionId)
        {
            ContentManagement objcontent = new ContentManagement(SessionCustom, HttpContext);
            List <int>        contentIds = new List <int>();

            if (HttpContext.Session["CollClones"] != null)
            {
                contentIds = (List <int>)HttpContext.Session["CollClones"];
                foreach (int item in contentIds)
                {
                    objcontent.Clone(item, CurrentLanguage.LanguageId.Value, sectionId);
                }

                HttpContext.Session.Remove("CollClones");
            }

            return(this.Json(new
            {
                result = true
            }));
        }