예제 #1
0
        public virtual BOReply MapEFToBO(
            Reply ef)
        {
            var bo = new BOReply();

            bo.SetProperties(
                ef.ReplyId,
                ef.Content,
                ef.Date,
                ef.ReplierUserId,
                ef.Time);
            return(bo);
        }
예제 #2
0
        public virtual BOReply MapModelToBO(
            int replyId,
            ApiReplyRequestModel model
            )
        {
            BOReply boReply = new BOReply();

            boReply.SetProperties(
                replyId,
                model.Content,
                model.Date,
                model.ReplierUserId,
                model.Time);
            return(boReply);
        }