public ActionResult Edit([Bind(Include = "TechnicianId,TechnicianName,TechnicianPhone,TechnicianEmail,NumberOfOperations,Active")] Technician technician)
 {
     if (ModelState.IsValid)
     {
         _db.Entry(technician).State = EntityState.Modified;
         _db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(technician));
 }
 public ActionResult Edit([Bind(Include = "CustomerId,FirstName,LastName,CustomerPhone,CustomerEmail,NumberOfRequests")] Customer customer)
 {
     if (ModelState.IsValid)
     {
         _db.Entry(customer).State = EntityState.Modified;
         _db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(customer));
 }
 public ActionResult Edit([Bind(Include = "RepairCaseId,Note,TechNote,RegistrationDate,ReceptionDate,CompletionDate,PickUpDate,LatestPickUpDate,Agreement,TechnicianIdd,CustomerIdd")] RepairCase repairCase)
 {
     if (ModelState.IsValid)
     {
         if ((repairCase.TechnicianIdd != null) && (repairCase.Situation == advancement.Registered))
         {
             repairCase.Situation = advancement.InProgress;
         }
         if (repairCase.CompletionDate != null)
         {
             repairCase.Situation = advancement.Finished;
         }
         repairCase.Agreement        = "Agree";
         _db.Entry(repairCase).State = EntityState.Modified;
         _db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(repairCase));
 }