public MeasurementPointPhoto GetMeasurementPointPhotoThumbnail(int photoId)
        {
            var photo = _context.MEASUREPOINT_RECORD_IMAGES.Find(photoId);

            if (photo == null || photo.Data == null)
            {
                return(new MeasurementPointPhoto()
                {
                    Id = -1
                });
            }

            return(new MeasurementPointPhoto()
            {
                Id = photoId,
                Title = photo.Title,
                Comment = photo.Comment,
                Photo = Convert.ToBase64String(ResizeImage.GetThumbnail(photo.Data))
            });
        }