public ActionResult Delete_auth(AuthorDependency autho) { try { authores.Delete(autho); return(RedirectToAction(nameof(Index_auth))); } catch { return(View()); } }
public ActionResult Edit_auth(int id, AuthorDependency autho) { try { authores.Update(id, autho); return(RedirectToAction(nameof(Index_auth))); } catch { return(View()); } }