public IActionResult Create(Docktor docktor) { if (ModelState.IsValid) { _docktorRepository.Create(docktor); return(RedirectToAction(nameof(Index))); } return(View(docktor)); }
public IActionResult Edit(Docktor docktor) { _docktorRepository.Update(docktor); return(RedirectToAction(nameof(Index))); }