public async Task <Result> DeleteImage(DeleteImageInput input) { Album album = await _albumRepository.FindAsync(input.AlbumId); Image result = album.Images.Find(image => image.Id.Equals(input.ImageId)); List <UploadedFile> uploadedFiles = await _uploadedFilesRepository .DeleteUploadedFiles(GetImageVariantsIds(result)); await _blobStore.DeleteBlobs(GetBlobsIds(uploadedFiles)); await _albumRepository.DeleteImage(input.AlbumId, input.ImageId); return(new Result() { Success = true }); }