public virtual ApiVoteResponseModel MapBOToModel( BOVote boVote) { var model = new ApiVoteResponseModel(); model.SetProperties(boVote.Id, boVote.BountyAmount, boVote.CreationDate, boVote.PostId, boVote.UserId, boVote.VoteTypeId); return(model); }
public virtual BOVote MapEFToBO( Vote ef) { var bo = new BOVote(); bo.SetProperties( ef.Id, ef.BountyAmount, ef.CreationDate, ef.PostId, ef.UserId, ef.VoteTypeId); return(bo); }
public virtual Vote MapBOToEF( BOVote bo) { Vote efVote = new Vote(); efVote.SetProperties( bo.BountyAmount, bo.CreationDate, bo.Id, bo.PostId, bo.UserId, bo.VoteTypeId); return(efVote); }
public virtual BOVote MapModelToBO( int id, ApiVoteRequestModel model ) { BOVote boVote = new BOVote(); boVote.SetProperties( id, model.BountyAmount, model.CreationDate, model.PostId, model.UserId, model.VoteTypeId); return(boVote); }