public virtual ApiVoteTypeResponseModel MapBOToModel(
            BOVoteType boVoteType)
        {
            var model = new ApiVoteTypeResponseModel();

            model.SetProperties(boVoteType.Id, boVoteType.Name);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOVoteType MapEFToBO(
            VoteType ef)
        {
            var bo = new BOVoteType();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Exemplo n.º 3
0
        public virtual VoteType MapBOToEF(
            BOVoteType bo)
        {
            VoteType efVoteType = new VoteType();

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

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