//
        // GET: /Notification/
        public ActionResult Index()
        {
            if (_sessionHelper.CurrentPlayer.Id != 0)
            {
                List <Notification> n = _notifBLL.NotificationList(_sessionHelper.CurrentPlayer);

                //List<Notification> n = new List<Notification>();
                //Notification _n = new Notification();
                //_n.Sender = _sessionHelper.CurrentPlayer;
                //_n.Receiver = _sessionHelper.CurrentPlayer;
                //_n.Text = "Super teste from chaos!!!";
                //_n.Type = NotificationType.teamCalling;
                //n.Add(_n);

                return(View(n));
            }
            else
            {
                return(View("error"));
            }
        }
Exemplo n.º 2
0
        //
        // GET: /Notification/
        public ActionResult Index()
        {
            List <Notification> notifs = _notifBLL.NotificationList(_sessionHelper.CurrentPlayer);

            return(View(notifs));
        }