public virtual ApiCommentsResponseModel MapBOToModel( BOComments boComments) { var model = new ApiCommentsResponseModel(); model.SetProperties(boComments.Id, boComments.CreationDate, boComments.PostId, boComments.Score, boComments.Text, boComments.UserId); return(model); }
public virtual BOComments MapEFToBO( Comments ef) { var bo = new BOComments(); bo.SetProperties( ef.Id, ef.CreationDate, ef.PostId, ef.Score, ef.Text, ef.UserId); return(bo); }
public virtual Comments MapBOToEF( BOComments bo) { Comments efComments = new Comments(); efComments.SetProperties( bo.CreationDate, bo.Id, bo.PostId, bo.Score, bo.Text, bo.UserId); return(efComments); }
public virtual BOComments MapModelToBO( int id, ApiCommentsRequestModel model ) { BOComments boComments = new BOComments(); boComments.SetProperties( id, model.CreationDate, model.PostId, model.Score, model.Text, model.UserId); return(boComments); }