Esempio n. 1
0
        public JsonResult DettachAjax(int id, int contentId)
        {
            ContentManagement objcontent = new ContentManagement(SessionCustom, HttpContext);

            return(this.Json(
                       new
            {
                result = objcontent.AttachDettachContent(contentId, id, false)
            }));
        }
Esempio n. 2
0
        public ActionResult Dettach(int id, int contentId, string name)
        {
            ContentManagement objcontent = new ContentManagement(SessionCustom, HttpContext);

            objcontent.AttachDettachContent(contentId, id, false);

            return(this.RedirectToAction(
                       "ContentRelation",
                       new
            {
                ContentId = contentId,
                name = name
            }));
        }