示例#1
0
        public virtual BOTweet MapEFToBO(
            Tweet ef)
        {
            var bo = new BOTweet();

            bo.SetProperties(
                ef.TweetId,
                ef.Content,
                ef.Date,
                ef.LocationId,
                ef.Time,
                ef.UserUserId);
            return(bo);
        }
        public virtual BOTweet MapModelToBO(
            int tweetId,
            ApiTweetRequestModel model
            )
        {
            BOTweet boTweet = new BOTweet();

            boTweet.SetProperties(
                tweetId,
                model.Content,
                model.Date,
                model.LocationId,
                model.Time,
                model.UserUserId);
            return(boTweet);
        }