示例#1
0
 public ActionResult Edit([Bind(Include = "Id,FullName,Post,Age,Qualification,Experience")] Interview interview)
 {
     if (ModelState.IsValid)
     {
         db.Entry(interview).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(interview));
 }
 public ActionResult Edit([Bind(Include = "ID,Name,BirthDate,Qualification,Grade,Center,Governorate,Address,Weight,Height,FatherJob,Type,Fitness,GeneralLook,CulturalLevel,TransportationOpinion,TrainingStaffOpinion,AttendanceDay")] Student student)
 {
     if (ModelState.IsValid)
     {
         db.Entry(student).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(student));
 }