Пример #1
0
 private static async Task <FaceViewModel> MapToViewModel(Face face, IStorageAccessingService googleStorageService)
 {
     return(new FaceViewModel
     {
         Id = face.Id,
         Photo = await googleStorageService.Read(face.PhotoName),
         PersonId = face.PersonId
     });
 }
Пример #2
0
 public FaceService(PhotoDbContext context, IStorageAccessingService googleStorageService)
 {
     _context = context;
     _googleStorageService = googleStorageService;
 }