public ActionResult CreatePatient(PatientViewModel patientViewModel) { if (ModelState.IsValid) { patientRepository.Add(patientViewModel.ToDomainModel()); return(RedirectToAction("Index")); } return(View(patientViewModel)); }