Exemplo n.º 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"
 };
Exemplo n.º 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)
 };