Example #1
0
 public int AddNewsLetter(DLModel.NewsLetter _policy)
 {
     return(_newsLetterRepository.Add(_policy).NewsLetterID);
 }
Example #2
0
        public IActionResult Create(Newsletter newsLetter)
        {
            _newsletterRepository.Add(newsLetter);

            return(RedirectToAction("Index", "Admin"));
        }
        public void AddNewsLetter(NewsLetterViewModel newsLetterVm)
        {
            var newsLetter = Mapper.Map <NewsLetterViewModel, NewsLetter>(newsLetterVm);

            _newsLetterRepository.Add(newsLetter);
        }