public ActionResult DeleteConfirmed(int id)
        {
            BKStudent bKStudent = db.Students.Find(id);

            db.Students.Remove(bKStudent);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,UndergraduateYears,FirstName,LastName,Gender,EntryScore,DoB,HasCriminalRecord,Province,BankBalance")] BKStudent bKStudent)
 {
     if (ModelState.IsValid && _validationService.ValidateStudent(bKStudent))
     {
         db.Entry(bKStudent).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bKStudent));
 }
        // GET: BKStudents/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BKStudent bKStudent = db.Students.Find(id);

            if (bKStudent == null)
            {
                return(HttpNotFound());
            }
            return(View(bKStudent));
        }