Exemplo n.º 1
0
        public virtual ApiReplyResponseModel MapBOToModel(
            BOReply boReply)
        {
            var model = new ApiReplyResponseModel();

            model.SetProperties(boReply.ReplyId, boReply.Content, boReply.Date, boReply.ReplierUserId, boReply.Time);

            return(model);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        public virtual Reply MapBOToEF(
            BOReply bo)
        {
            Reply efReply = new Reply();

            efReply.SetProperties(
                bo.Content,
                bo.Date,
                bo.ReplierUserId,
                bo.ReplyId,
                bo.Time);
            return(efReply);
        }
Exemplo n.º 4
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);
        }