public static TweetEntity FromDalToEntity(DAL.Tweet tweet) { return(new TweetEntity() { Owner = UserContainer.FromDalToEntity(tweet.Owner), Identity = tweet.Identifier, DateCreation = tweet.Date, Message = tweet.Text, }); }
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(); }