internal List <IEnumerable <Post> > GetByProfile(string id) { IEnumerable <Following> profiles = _repo.GetByProfile(id); List <IEnumerable <Post> > posts = new List <IEnumerable <Post> >(); foreach (Following profile in profiles) { posts.Add(_porepo.GetByProfile(profile.FollowingId)); } return(posts); }
internal object GetByProfile(string id) { return(_repo.GetByProfile(id)); }