예제 #1
0
 // TODO: move to mapper
 private Photo Map(Domain.Photo photo) => photo == null
     ? null
     : new Photo
 {
     Id   = photo.Id,
     Name = photo.Name,
     ThumbnailLocation = $"/api/photo/{photo.Id}/thumbnail"
 };
예제 #2
0
 // TODO: move to mapper
 private PhotoDetailed MapToDetailed(Domain.Photo photo) => photo == null
     ? null
     : new PhotoDetailed
 {
     Id                       = photo.Id,
     Name                     = photo.Name,
     OriginalLocation         = $"/api/photo/{photo.Id}/original",
     ProcessingAnalysisResult = Convert(photo.VisionAnalysis)
 };