Beispiel #1
0
        public async Task <ActionResult <Stream> > DownloadCompactVersion(string id)
        {
            if (!await _pictureRepository.ExistsAsync(id))
            {
                return(NotFound(id));
            }
            var downloadStream = await _pictureRepository.DownloadAsync(id);

            return(Ok(_pictureManager.GetCompactPictureVersion(downloadStream)));
        }