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