Пример #1
0
 public void CreateBook(Model.Book p)
 {
     db.Book.Create(new DAL.Book {
         Name = p.Name, Autor = p.Autor, Annot = p.Annot, Status_id = p.Status_id, Rubrika_id = p.Rubrika_id, God = p.God, Izdatelstvo_id = p.Izdatelstvo_id
     });
 }
Пример #2
0
 public void UpdateBook(Model.Book p)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 //根据id修改
 public int update(Model.Book book)
 {
     return(bm.update(book));
 }
Пример #4
0
 //增加
 public int insert(Model.Book book)
 {
     return(bm.insert(book));
 }
Пример #5
0
 /*更新图书*/
 public static bool EditBook(Model.Book book)
 {
     return(DAL.dalBook.EditBook(book));
 }
Пример #6
0
 /*添加图书*/
 public static bool AddBook(Model.Book book)
 {
     return(DAL.dalBook.AddBook(book));
 }