protected void Page_Load(object sender, EventArgs e) { var tweetContainer = new TweetContainer(); var userContainer = new UserContainer(); this.Tweets.DataSource = tweetContainer.ListFollowingTweets(); this.Tweets.DataBind(); this.FollowingUsers.DataSource = userContainer.GetFollowingUsers(); this.FollowingUsers.DataBind(); this.Followers.DataSource = userContainer.GetFollowers(); this.Followers.DataBind(); }
protected void SendNewTweet(object sender, EventArgs e) { var tweetContainer = new TweetContainer(); tweetContainer.CreateTweet(new TweetEntity() { Message = this.NewTweet.Text.ToString()}); }