public ActionResult Delete(int id, Auther auther) { try { autherRepository.delete(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Delete(int id, Book book) { try { bookRepository.delete(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }