Exemplo n.º 1
0
 public IActionResult Leave(int activityID, int userID)
 {
     if (HttpContext.Session.GetInt32("userID") == userID)
     {
         ActivityFactory.LeaveActivity(activityID, userID);
     }
     return(RedirectToAction("Home"));
 }