Exemplo n.º 1
0
        public ChapterDB SaveMangaChapter(int mangaId, MangaChapterDTO chapter)
        {
            var chapterDb = new ChapterDB()
            {
                MangaId = mangaId,
                Name    = chapter.Name,
                URL     = chapter.URL,
            };

            _chapterRepository.Add(chapterDb);
            return(chapterDb);
        }
Exemplo n.º 2
0
 public async Task SaveMangaChapter(string mangaUrl, [FromBody] MangaChapterDTO chapter)
 {
     _mangaService.SaveMangaChapter(mangaUrl, chapter);
 }
Exemplo n.º 3
0
        public ChapterDB SaveMangaChapter(string mangaUrl, MangaChapterDTO chapter)
        {
            var mangaDb = _mangaRepository.FirstOrDefault(x => x.URL == mangaUrl);

            return(SaveMangaChapter(mangaDb.Id, chapter));
        }
Exemplo n.º 4
0
        public ChapterImageDB SaveChapterImage(MangaChapterDTO chapter, string imageUrl)
        {
            var chapterId = _chapterRepository.FirstOrDefault(x => x.URL == chapter.URL);

            return(SaveChapterImage(chapterId.Id, imageUrl));
        }