예제 #1
0
        public ActionResult TwitUser(string username)
        {
            Twit         twit_to_display     = repo.GetTwitBasedOnUserName(username);
            List <Tweet> tweets_to_display   = repo.GetAllUserSpecificTweets(twit_to_display.TwitId);
            int          number_of_following = twit_to_display.Follows.ToList().Count();

            ViewBag.username            = username;
            ViewBag.number_of_following = number_of_following;
            ViewBag.twit_to_display     = twit_to_display;
            ViewBag.tweets_to_display   = tweets_to_display;
            return(View());
        }
예제 #2
0
 // GET: api/Tweet/5
 public IEnumerable <Tweet> Get(int id)
 {
     return(repo.GetAllUserSpecificTweets(id));
 }