public async Task <bool> DeleteChapter(Chapter chapter) { if (!await _chapterManager.Delete(chapter)) { return(false); } Utilities.GetChapterFolder(_environment, chapter.TitleId, chapter.Id).Delete(true); return(true); }
public ActionResult DeleteConfirmed(Guid id) { ChapterManager.Delete(id); return(RedirectToAction("Index")); }