Exemple #1
0
        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);
        }
Exemple #2
0
 internal object GetByProfile(string id)
 {
     return(_repo.GetByProfile(id));
 }