Exemplo n.º 1
0
        public Poll.Domain.Models.Poll MapperToEntity(string poll_description)
        {
            Poll.Domain.Models.Poll Poll = new Poll.Domain.Models.Poll
            {
                poll_description = poll_description
            };

            return(Poll);
        }
Exemplo n.º 2
0
        public PollDTO MapperToDTO(Poll.Domain.Models.Poll Poll)
        {
            if (Poll != null)
            {
                PollDTO PollDTO = new PollDTO
                {
                    poll_id          = Poll.poll_id,
                    poll_description = Poll.poll_description
                };

                return(PollDTO);
            }
            else
            {
                return(null);
            }
        }