Polish 7 (#3381)
This commit is contained in:
parent
cb810a2d8f
commit
3e3b6ba92b
26 changed files with 1631 additions and 212 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue