예제 #1
0
        public IActionResult Create(Clinic clinic)
        {
            if (ModelState.IsValid)
            {
                _clinicRepository.AddClinc(clinic);
                return(RedirectToAction("details", new { id = clinic.clinicId }));
            }

            return(View());
        }