예제 #1
0
        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());
            }
        }