Esempio n. 1
0
        public ActionResult ConfirmDelete(int id)
        {
            AuthorStaroseletsEV book = repo.Get(id);

            if (book != null)
            {
                return(View(book));
            }
            return(NotFound());
        }
Esempio n. 2
0
        public ActionResult Edit(int id)
        {
            AuthorStaroseletsEV author = repo.Get(id);

            if (author != null)
            {
                return(View(author));
            }
            return(NotFound());
        }
Esempio n. 3
0
 public ActionResult Edit(AuthorStaroseletsEV book)
 {
     repo.Update(book);
     return(RedirectToAction("ListOfAuther"));
 }