public virtual BOPostLink MapEFToBO( PostLink ef) { var bo = new BOPostLink(); bo.SetProperties( ef.Id, ef.CreationDate, ef.LinkTypeId, ef.PostId, ef.RelatedPostId); return(bo); }
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); }