public ActionResult DeleteConfirmed(int id)
        {
            FUStudent fUStudent = db.Students.Find(id);

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

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