Example #1
0
 public IActionResult ViewActivity(int Id)
 {
     if (GetId(HttpContext) == null)
     {
         return(RedirectToAction("Index", "LoginReg"));
     }
     ViewBag.Activity = _activityFactory.GetActivityById(Id);
     ViewBag.User     = _userFactory.GetUserByID((int)GetId(HttpContext));
     return(View("ViewActivity"));
 }