public async Task <List <RedisPhoto> > GetAllPhotos(Guid userId) { return(await _photosRepository.GetAllPhotos(userId)); }
public async Task AddAllUsersPhotoToFeed(Guid userId, Guid subscriptionId) { var photos = await _photosRepository.GetAllPhotos(subscriptionId); await _redisRepository.AddAllUsersPhotoToFeed(userId, photos); }