public JsonResult DelitSlide(int numSlide, int count) { var mng = new Pptx(); var sm = new SettingsManager(); mng.SetFolder(sm.GetSetting("folder_presentation", "")); bool newSlide = mng.DeleteSlide(numSlide, count); return(new JsonResult { Data = newSlide, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }