Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }