Beispiel #1
0
        public Image GetById(Guid id)
        {
            if (id == Guid.Empty)
            {
                return(null);
            }

            var item = _imageRepository.GetById(id);

            var metadata = _metadataRepository.GetByImageId(id);

            item.MimeType = metadata.MimeType;
            item.FileName = metadata.FileName;


            return(item);
        }