public ActionResult Edit([Bind(Include = "id,Name,password,roal")] Login login)
 {
     if (ModelState.IsValid)
     {
         db.Entry(login).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(login));
 }
 public ActionResult Edit([Bind(Include = "id,code,c_Attributs,status")] gcode gcode)
 {
     if (ModelState.IsValid)
     {
         db.Entry(gcode).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(gcode));
 }
Example #3
0
 public ActionResult Edit([Bind(Include = "Id,Member_id,Name,standard,room_cup,A_year")] student_data student_data)
 {
     if (ModelState.IsValid)
     {
         db.Entry(student_data).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(student_data));
 }