Implemented the ability to extract an archive image to a cache directory.

This commit is contained in:
Joseph Milazzo 2021-01-08 13:28:59 -06:00
parent 14ad2a3dd5
commit 7ab7e8acc4
8 changed files with 127 additions and 8 deletions

View file

@ -76,5 +76,12 @@ namespace API.Data
return await _context.Series.Where(x => x.Id == seriesId)
.ProjectTo<SeriesDto>(_mapper.ConfigurationProvider).SingleAsync();
}
public async Task<Volume> GetVolumeAsync(int volumeId)
{
return await _context.Volume
.Include(vol => vol.Files)
.SingleOrDefaultAsync(vol => vol.Id == volumeId);
}
}
}