예제 #1
0
 public IActionResult Create(Docktor docktor)
 {
     if (ModelState.IsValid)
     {
         _docktorRepository.Create(docktor);
         return(RedirectToAction(nameof(Index)));
     }
     return(View(docktor));
 }
예제 #2
0
 public IActionResult Edit(Docktor docktor)
 {
     _docktorRepository.Update(docktor);
     return(RedirectToAction(nameof(Index)));
 }