public virtual ApiPostHistoryResponseModel MapBOToModel(
            BOPostHistory boPostHistory)
        {
            var model = new ApiPostHistoryResponseModel();

            model.SetProperties(boPostHistory.Id, boPostHistory.Comment, boPostHistory.CreationDate, boPostHistory.PostHistoryTypeId, boPostHistory.PostId, boPostHistory.RevisionGUID, boPostHistory.Text, boPostHistory.UserDisplayName, boPostHistory.UserId);

            return(model);
        }
Example #2
0
        public virtual BOPostHistory MapEFToBO(
            PostHistory ef)
        {
            var bo = new BOPostHistory();

            bo.SetProperties(
                ef.Id,
                ef.Comment,
                ef.CreationDate,
                ef.PostHistoryTypeId,
                ef.PostId,
                ef.RevisionGUID,
                ef.Text,
                ef.UserDisplayName,
                ef.UserId);
            return(bo);
        }
Example #3
0
        public virtual PostHistory MapBOToEF(
            BOPostHistory bo)
        {
            PostHistory efPostHistory = new PostHistory();

            efPostHistory.SetProperties(
                bo.Comment,
                bo.CreationDate,
                bo.Id,
                bo.PostHistoryTypeId,
                bo.PostId,
                bo.RevisionGUID,
                bo.Text,
                bo.UserDisplayName,
                bo.UserId);
            return(efPostHistory);
        }
        public virtual BOPostHistory MapModelToBO(
            int id,
            ApiPostHistoryRequestModel model
            )
        {
            BOPostHistory boPostHistory = new BOPostHistory();

            boPostHistory.SetProperties(
                id,
                model.Comment,
                model.CreationDate,
                model.PostHistoryTypeId,
                model.PostId,
                model.RevisionGUID,
                model.Text,
                model.UserDisplayName,
                model.UserId);
            return(boPostHistory);
        }