Example #1
0
 // GET: Notifications
 public ActionResult Index()
 {
     if (NotificationsHelper.GetUnreadNotifications().Count() > 0)
     {
         string controllerName = this.ControllerContext.RouteData.Values["controller"].ToString();
         var    notifications  = showStuff.MyStuffOnly(controllerName);
         return(View(notifications));
     }
     TempData["NoNotifications"] = "You have no unread Notifications.";
     return(RedirectToAction("Index", "Home"));
 }