Exemple #1
0
        public virtual BOVoteType MapEFToBO(
            VoteType ef)
        {
            var bo = new BOVoteType();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual BOVoteType MapModelToBO(
            int id,
            ApiVoteTypeRequestModel model
            )
        {
            BOVoteType boVoteType = new BOVoteType();

            boVoteType.SetProperties(
                id,
                model.Name);
            return(boVoteType);
        }