public virtual BOPostLinks MapEFToBO( PostLinks ef) { var bo = new BOPostLinks(); bo.SetProperties( ef.Id, ef.CreationDate, ef.LinkTypeId, ef.PostId, ef.RelatedPostId); return(bo); }
public virtual BOPostLinks MapModelToBO( int id, ApiPostLinksRequestModel model ) { BOPostLinks boPostLinks = new BOPostLinks(); boPostLinks.SetProperties( id, model.CreationDate, model.LinkTypeId, model.PostId, model.RelatedPostId); return(boPostLinks); }