public ActionResult Edit([Bind(Include = "Id,UserId,Paid,Value")] Bill bill)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bill).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Manage"));
     }
     return(View(bill));
 }
 public ActionResult Edit([Bind(Include = "Id,Model,RentPrice,Description")] Machine machine)
 {
     if (ModelState.IsValid)
     {
         db.Entry(machine).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Manage"));
     }
     return(View(machine));
 }
 public ActionResult Edit([Bind(Include = "Id,UserId,MachineId,From,To,Status")] Command command)
 {
     if (ModelState.IsValid)
     {
         db.Entry(command).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Manage"));
     }
     ViewBag.MachineId = new SelectList(db.Machines, "Id", "Model", command.MachineId);
     return(View(command));
 }