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