public virtual BOVotes MapEFToBO( Votes ef) { var bo = new BOVotes(); bo.SetProperties( ef.Id, ef.BountyAmount, ef.CreationDate, ef.PostId, ef.UserId, ef.VoteTypeId); return(bo); }
public virtual BOVotes MapModelToBO( int id, ApiVotesRequestModel model ) { BOVotes boVotes = new BOVotes(); boVotes.SetProperties( id, model.BountyAmount, model.CreationDate, model.PostId, model.UserId, model.VoteTypeId); return(boVotes); }