public ActionResult DeleteConfirmed(int id)
 {
     PatientAssistance.Models.PatientAssistance patientAssistance = db.PatientAssistances.Find(id);
     db.PatientAssistances.Remove(patientAssistance);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit([Bind(Include = "id,LevelOfPain,HospitalName,AveProcessTime,PatientCount,WaitingTime")] PatientAssistance.Models.PatientAssistance patientAssistance)
 {
     if (ModelState.IsValid)
     {
         db.Entry(patientAssistance).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(patientAssistance));
 }
 // GET: PatientAssistances/Edit/5
 public ActionResult Edit(int?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     PatientAssistance.Models.PatientAssistance patientAssistance = db.PatientAssistances.Find(id);
     if (patientAssistance == null)
     {
         return(HttpNotFound());
     }
     return(View(patientAssistance));
 }