mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-06 06:45:18 -04:00
Polish 7 (#3381)
This commit is contained in:
@@ -31,6 +31,7 @@ public interface IChapterRepository
|
||||
{
|
||||
void Update(Chapter chapter);
|
||||
void Remove(Chapter chapter);
|
||||
void Remove(IList<Chapter> chapters);
|
||||
Task<IEnumerable<Chapter>> GetChaptersByIdsAsync(IList<int> chapterIds, ChapterIncludes includes = ChapterIncludes.None);
|
||||
Task<IChapterInfoDto?> GetChapterInfoDtoAsync(int chapterId);
|
||||
Task<int> GetChapterTotalPagesAsync(int chapterId);
|
||||
@@ -68,6 +69,11 @@ public class ChapterRepository : IChapterRepository
|
||||
_context.Chapter.Remove(chapter);
|
||||
}
|
||||
|
||||
public void Remove(IList<Chapter> chapters)
|
||||
{
|
||||
_context.Chapter.RemoveRange(chapters);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Chapter>> GetChaptersByIdsAsync(IList<int> chapterIds, ChapterIncludes includes = ChapterIncludes.None)
|
||||
{
|
||||
return await _context.Chapter
|
||||
|
||||
Reference in New Issue
Block a user