public ActionResult Delete(long id)
        {
            var notificationMessage = _notificationMessageService.Find(id);
            var campaignId          = notificationMessage.NotificationId;

            _notificationMessageService.Delete(id);
            _unitOfWorkAsync.SaveChanges();
            return(RedirectToAction("Edit", "Notification", new { id = campaignId }));
        }
Example #2
0
 /// <summary>
 /// Deletes a <see cref="INotificationMessage"/>
 /// </summary>
 /// <param name="message">The <see cref="INotificationMessage"/> to be deleted</param>
 public void Delete(INotificationMessage message)
 {
     _notificationMessageService.Delete(message);
 }