First pass for supporting lazy loading and not using base64 strings for loading images in UI.
This commit is contained in:
parent
fea1f3d152
commit
33515ad865
6 changed files with 98 additions and 3 deletions
|
@ -143,6 +143,16 @@ namespace API.Data
|
|||
.SingleOrDefaultAsync(vol => vol.Id == volumeId);
|
||||
}
|
||||
|
||||
public async Task<VolumeDto> GetVolumeDtoAsync(int volumeId)
|
||||
{
|
||||
return await _context.Volume
|
||||
.Where(vol => vol.Id == volumeId)
|
||||
.AsNoTracking()
|
||||
.ProjectTo<VolumeDto>(_mapper.ConfigurationProvider)
|
||||
.SingleAsync();
|
||||
|
||||
}
|
||||
|
||||
public async Task<VolumeDto> GetVolumeDtoAsync(int volumeId, int userId)
|
||||
{
|
||||
var volume = await _context.Volume
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue