public string UpdateBook(Book book) { int rowAffected = bookGateway.UpdateBook(book); if (rowAffected > 0) { return("Book Update Successfully."); } else { return("Book Update Failed, Try Again."); } }
public void UpdateBook(int id, int outsideCopy, int i) { bookGateway.UpdateBook(id, outsideCopy, i); }