public ActionResult AddPatient(FormCollection collection) { PatientModel model = new PatientModel(); try { model.Add(collection["FirstName"], collection["LastName"], collection["DateofBirth"], collection["Phone"], collection["Email"]); return(RedirectToAction("Patients")); } catch { return(View()); } }