public int AddNewsLetter(DLModel.NewsLetter _policy) { return(_newsLetterRepository.Add(_policy).NewsLetterID); }
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); }