public ChapterDB SaveMangaChapter(int mangaId, MangaChapterDTO chapter) { var chapterDb = new ChapterDB() { MangaId = mangaId, Name = chapter.Name, URL = chapter.URL, }; _chapterRepository.Add(chapterDb); return(chapterDb); }
public async Task SaveMangaChapter(string mangaUrl, [FromBody] MangaChapterDTO chapter) { _mangaService.SaveMangaChapter(mangaUrl, chapter); }
public ChapterDB SaveMangaChapter(string mangaUrl, MangaChapterDTO chapter) { var mangaDb = _mangaRepository.FirstOrDefault(x => x.URL == mangaUrl); return(SaveMangaChapter(mangaDb.Id, chapter)); }
public ChapterImageDB SaveChapterImage(MangaChapterDTO chapter, string imageUrl) { var chapterId = _chapterRepository.FirstOrDefault(x => x.URL == chapter.URL); return(SaveChapterImage(chapterId.Id, imageUrl)); }