public ActionResult Index(User user)
 {
     //Adds submitted user data to database
     if (ModelState.IsValid)
     {
         db.AddNewUser(user.lastName, user.firstName, user.username, user.phoneNumber, user.isDriver, user.nmcEmail, user.password, user.gender);
         db.SaveChanges();
     }
     return(View("Success"));
 }
 /// <summary>
 /// Saves the changes to the data set.
 /// Should be called by the Add(), Delete(), and Update() methods after changes are made.
 /// </summary>
 protected void Save()
 {
     _dataContext.SaveChanges();
 }