public ActionResult Delete(int id, int authorId)
 {
     try
     {
         da.DeleteBook(id);
         return(RedirectToAction("Index", new { id = authorId }));
     }
     catch
     {
         return(View());
     }
 }
Esempio n. 2
0
 public int Delete(long id)
 {
     return(objBook.DeleteBook(id));
 }