Exemple #1
0
 public IActionResult Show(int activityID)
 {
     if (HttpContext.Session.GetString("loggedIn") == "true")
     {
         ViewBag.loggedIn     = true;
         ViewBag.userID       = HttpContext.Session.GetInt32("userID");
         ViewBag.errors       = "";
         ViewBag.Activity     = ActivityFactory.GetActivity(activityID);
         ViewBag.Participants = ActivityFactory.GetParticipants(activityID);
         return(View());
     }
     return(RedirectToAction("Index", "Home"));
 }