コード例 #1
0
        public ActionResult CreatePatient(PatientViewModel patientViewModel)
        {
            if (ModelState.IsValid)
            {
                patientRepository.Add(patientViewModel.ToDomainModel());
                return(RedirectToAction("Index"));
            }

            return(View(patientViewModel));
        }