public JsonResult Del(int id) { bool result = false; Notification n = _notifBLL.NotificationSelect(id); if (n.Receiver.Id == _sessionHelper.CurrentPlayer.Id) { result = _notifBLL.NotificationDelete(n.Id); } return(Json(result)); }
public ActionResult DelNotif(int id_notif) { Notification n = _notifBLL.NotificationSelect(id_notif); if (n.Receiver.Id == _sessionHelper.CurrentPlayer.Id) { bool result = _notifBLL.NotificationDelete(id_notif); return(Json(result)); } else { return(Json(false)); } }