public async Task <byte[]> GetPicture(string photoId, string albumId, User requestor) { var album = await _albumService.GetAlbum(albumId); if (!await _permissionsService.CanSeePicture(requestor, albumId)) { return(null); } var photo = album.Photos.FirstOrDefault(x => x.PhotoId == photoId); if (photo == null) { return(null); } return(await _ftpService.GetPhoto(photo)); }