public async Task <IActionResult> Edit(int id, [Bind("CompleteListID,MedicalRecord,LastName,FirstName,Physician,DOB,TreatmentDays,Age,Gender,Address,PhoneNumber,Email,TreatmentTime,AccessType,KBath,CaBath,NaBath,BiCarb,Temp,DialyzerSize,Comments")] CompleteList completeList) { if (id != completeList.CompleteListID) { return(NotFound()); } if (ModelState.IsValid) { try { context.Update(completeList); await context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CompleteListExists(completeList.CompleteListID)) { return(NotFound()); } else { throw; } } return(Redirect("/PatientMasterList/Index")); } return(Redirect("PatientMasterList")); }
public async Task <IActionResult> Edit(int id, [Bind("PhysicianID,LastName,FirstName,CellPhone,OfficePhone")] Physician physician) { if (id != physician.PhysicianID) { return(NotFound()); } if (ModelState.IsValid) { try { context.Update(physician); await context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PhysicianExists(physician.PhysicianID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(physician)); }