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

            bo.SetProperties(
                ef.Id,
                ef.CreationDate,
                ef.LinkTypeId,
                ef.PostId,
                ef.RelatedPostId);
            return(bo);
        }
예제 #2
0
        public virtual BOPostLink MapModelToBO(
            int id,
            ApiPostLinkRequestModel model
            )
        {
            BOPostLink boPostLink = new BOPostLink();

            boPostLink.SetProperties(
                id,
                model.CreationDate,
                model.LinkTypeId,
                model.PostId,
                model.RelatedPostId);
            return(boPostLink);
        }