public bool Insert(SignUpNewsletterDTO DTO)
 {
     try
     {
         return(dao.Insert(convertData.ConvertToEF(DTO)));
     }
     catch (Exception)
     {
         return(false);
     }
 }
Beispiel #2
0
        public SignUpNewsletter ConvertToEF(SignUpNewsletterDTO DTO)
        {
            var EF = new SignUpNewsletter()
            {
                CheckNew     = DTO.CheckNew,
                CheckPost    = DTO.CheckPost,
                Email        = DTO.Email,
                IdProfession = DTO.IdProfession,
                Name         = DTO.Name,
                RegisterID   = DTO.RegisterID
            };

            return(EF);
        }
Beispiel #3
0
        public SignUpNewsletterDTO ConvertToDTO(SignUpNewsletter EF)
        {
            var DTO = new SignUpNewsletterDTO()
            {
                CheckNew     = EF.CheckNew,
                CheckPost    = EF.CheckPost,
                Email        = EF.Email,
                IdProfession = EF.IdProfession,
                Name         = EF.Name,
                RegisterID   = EF.RegisterID
            };

            return(DTO);
        }