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 }); }
public FaceService(PhotoDbContext context, IStorageAccessingService googleStorageService) { _context = context; _googleStorageService = googleStorageService; }