public IActionResult Delete(int activityID, int userID) { if (HttpContext.Session.GetInt32("userID") == userID) { ActivityFactory.DeleteActivity(activityID); } return(RedirectToAction("Home")); }