Exemplo n.º 1
0
        public ActionResult ConfirmDelete(int id)
        {
            BooksStaroseletsEV book = repo.Get(id);

            if (book != null)
            {
                return(View(book));
            }
            return(NotFound());
        }
Exemplo n.º 2
0
 public ActionResult Edit(BooksStaroseletsEV book)
 {
     repo.Update(book);
     return(RedirectToAction("ListOfBooks"));
 }