public ActionResult Edit([Bind(Include = "ID, Brand, Supplier_autoID, price, EquipmentID, StaffID")] Car Cl)
 {
     if (ModelState.IsValid)
     {
         db.Entry(Cl).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("/"));
     }
     return(View(Cl));
 }
 public ActionResult Edit([Bind(Include = "ID, fname, lname, RoleID, Type_roomID")] Staff Cl)
 {
     if (ModelState.IsValid)
     {
         db.Entry(Cl).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("/"));
     }
     return(View(Cl));
 }
Пример #3
0
 public ActionResult Edit([Bind(Include = "ID, date, StaffID")] Supplier_auto Cl)
 {
     if (ModelState.IsValid)
     {
         db.Entry(Cl).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("/"));
     }
     return(View(Cl));
 }
Пример #4
0
 public ActionResult Edit([Bind(Include = "ID,type")] Accessory Cl)
 {
     if (ModelState.IsValid)
     {
         db.Entry(Cl).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("/"));
     }
     return(View(Cl));
 }
 public ActionResult Edit([Bind(Include = "ID, fname, lname, phone, CarID")] Client Cl)
 {
     if (ModelState.IsValid)
     {
         db.Entry(Cl).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("/"));
     }
     return(View(Cl));
 }