mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 14:25:17 -04:00
Removed some dead code on the interfaces. Introduced UnitOfWork to simplify repo injection.
This commit is contained in:
@@ -8,17 +8,15 @@ namespace API.Interfaces
|
||||
public interface ISeriesRepository
|
||||
{
|
||||
void Update(Series series);
|
||||
Task<bool> SaveAllAsync();
|
||||
Task<Series> GetSeriesByNameAsync(string name);
|
||||
Series GetSeriesByName(string name);
|
||||
bool SaveAll();
|
||||
Task<IEnumerable<SeriesDto>> GetSeriesDtoForLibraryIdAsync(int libraryId, int userId = 0);
|
||||
Task<IEnumerable<VolumeDto>> GetVolumesDtoAsync(int seriesId, int userId = 0);
|
||||
IEnumerable<Volume> GetVolumes(int seriesId);
|
||||
Task<SeriesDto> GetSeriesDtoByIdAsync(int seriesId);
|
||||
|
||||
Task<Volume> GetVolumeAsync(int volumeId);
|
||||
Task<VolumeDto> GetVolumeDtoAsync(int volumeId); // TODO: Likely need to update here
|
||||
Task<VolumeDto> GetVolumeDtoAsync(int volumeId);
|
||||
|
||||
Task<IEnumerable<Volume>> GetVolumesForSeriesAsync(int[] seriesIds);
|
||||
Task<bool> DeleteSeriesAsync(int seriesId);
|
||||
|
||||
Reference in New Issue
Block a user