Example #1
0
 public ActionResult Edit([Bind(Include = "Apptmnt_ID,Apptmnt_Date,Apptmnt_Time,StudentID,StudentEmail")] Appointment appointment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(appointment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(appointment));
 }