public JsonResult DettachAjax(int id, int contentId) { ContentManagement objcontent = new ContentManagement(SessionCustom, HttpContext); return(this.Json( new { result = objcontent.AttachDettachContent(contentId, id, false) })); }
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 })); }