Пример #1
0
        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);
        }
Пример #2
0
 public ActionResult DeleteConfirmed(Guid id)
 {
     ChapterManager.Delete(id);
     return(RedirectToAction("Index"));
 }