public ActionResult DetailHole(Pothole pothole) { if (CurrentUser == "EmptyUserName" || CurrentUser != "") { int potHoleID = potholeDAL.InsertPothole(pothole); Session["Pothole_id"] = potHoleID; return(View("DetailHole", pothole)); } else { return(RedirectToAction("Login", "User")); } }