public ActionResult AddDegree(Degrees Deg) { Employee e1 = (Employee)Session["Employee"]; if (Session["EmpID"] != null && e1.isAdmin == true) { if (ModelState.IsValid) { Deg.AddDegree(); } return(RedirectToAction("Degrees")); } else { return(RedirectToAction("Index", "LogIn")); } }