//商家插入一本书,已测 //返回1插入成功,否则失败 public int insertBook(int sellerID,int typeID,string title,string author, string publisher,string isbn,string info, float price,int amount,bool valid,string imgpath) { int result = 0; BookDAL bd = new BookDAL(); Book b = new Book(); b.sellerID = sellerID; b.typeListId = typeID; b.bookTitle = title; b.bookAuthor = author; b.bookAmount = amount; b.bookPublisher = publisher; b.bookIsbn = isbn; b.bookInfo = info; b.bookPrice = price; b.isvalid = valid; b.bookImage = imgpath; result = bd.insertBook(b); return result; }