Ejemplo n.º 1
0
        public ActionResult DeleteDegree(int DegreeID)
        {
            Employee e1 = (Employee)Session["Employee"];

            if (Session["EmpID"] != null && e1.isAdmin == true)
            {
                Degrees Deg = new Degrees {
                    DegreeID = DegreeID
                };
                Deg.DeleteDegree();
                return(RedirectToAction("Degrees"));
            }
            else
            {
                return(RedirectToAction("Index", "LogIn"));
            }
        }