Beispiel #1
0
        public JsonResult Answer(int id, bool answer)
        {
            bool result = false;

            Notification n = _notifBLL.NotificationSelect(id);

            if (n.Receiver.Id == _sessionHelper.CurrentPlayer.Id)
            {
                result = _notifBLL.NotificationAnswer(n, answer);
            }

            return(Json(result));
        }
        public ActionResult AnswerNotif(int id_notif, bool resp)
        {
            Notification n = _notifBLL.NotificationSelect(id_notif);

            if (n.Receiver.Id == _sessionHelper.CurrentPlayer.Id)
            {
                bool result = _notifBLL.NotificationAnswer(n, resp);

                return(Json(result));
            }
            else
            {
                return(Json(false));
            }
        }