public IActionResult Create(NotifyPopup notifyPopup) { if (ModelState.IsValid) { _notifyPopupRepository.AddNotifyPopup(notifyPopup); return(RedirectToAction(nameof(Index))); } return(View(notifyPopup)); }
public IActionResult Create(NotifyPopup notifyPopup) { if (ModelState.IsValid) { _notifyPopupRepository.AddNotifyPopup(notifyPopup); return(RedirectToAction(nameof(Index))); } return(View(notifyPopup)); }