public IActionResult DeleteStudent()
        {
            //get the uid from the session
            int        uID     = Convert.ToInt32(HttpContext.Session.GetString("uID")); //reads from the session
            DALStudent dp      = new DALStudent(configuration);
            Student    student = dp.getStudent(uID);

            dp.DeleteStudent(uID);

            return(View(student));
        }
 public ActionResult DeleteStudent(int ID)
 {
     dalStudent.DeleteStudent(ID);
     return(RedirectToAction("Index", "Student"));
 }