public IActionResult Delete(int id) { try { bookService.DeleteBook(id); return(RedirectToAction("Index")); } catch (Exception) { return(View()); } }
public Models.Book.Book DeleteBook(int id) { return(_bookService.DeleteBook(id)); }
public BookOfKnowledge.Models.Book.Book DeleteBook(int id) { return(_bookService.DeleteBook(id)); }
private void btn_Delete_Click_1(object sender, EventArgs e) { int bookId = (int)dataGridView_Books.CurrentRow.Cells[0].Value; bookService.DeleteBook(bookId); }
public void DeleteBook(int id) { bookService.DeleteBook(id); }