public ActionResult ConfirmDelete(int id) { AuthorStaroseletsEV book = repo.Get(id); if (book != null) { return(View(book)); } return(NotFound()); }
public ActionResult Edit(int id) { AuthorStaroseletsEV author = repo.Get(id); if (author != null) { return(View(author)); } return(NotFound()); }
public ActionResult Edit(AuthorStaroseletsEV book) { repo.Update(book); return(RedirectToAction("ListOfAuther")); }