Пример #1
0
        private void btn_Update_Click(object sender, EventArgs e)
        {
            book.Id          = Convert.ToInt32(txtB_Id.Text);
            book.Title       = txtB_Title.Text;
            book.Description = txtB_Description.Text;

            bookService.UpdateBook(book.Id, book);
            this.Close();
        }
Пример #2
0
 public IActionResult Update(int id, [Bind] BookOfKnowledge.Models.Book.Book book)
 {
     try
     {
         bookService.UpdateBook(id, book);
         return(RedirectToAction("Index"));
     }
     catch (Exception)
     {
         return(View());
     }
 }
 public Models.Book.Book UpdateBook(int id, Models.Book.Book book)
 {
     return(_bookService.UpdateBook(id, book));
 }
Пример #4
0
 public BookOfKnowledge.Models.Book.Book UpdateBook(int id, BookOfKnowledge.Models.Book.Book book)
 {
     return(_bookService.UpdateBook(id, book));
 }