public ActionResult UpdatePatient(int id, PatientModel patient) { if (ModelState.IsValid) { //clalling BLL function PatientLogic.updatePatient(id, patient); } return(Redirect("PatientDetails?id=" + id)); }