public virtual BOComment MapEFToBO( Comment ef) { var bo = new BOComment(); bo.SetProperties( ef.Id, ef.CreationDate, ef.PostId, ef.Score, ef.Text, ef.UserId); return(bo); }
public virtual BOComment MapModelToBO( int id, ApiCommentRequestModel model ) { BOComment boComment = new BOComment(); boComment.SetProperties( id, model.CreationDate, model.PostId, model.Score, model.Text, model.UserId); return(boComment); }