Example #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
     });
 }
Example #2
0
 public void UpdateBook(Model.Book p)
 {
     throw new NotImplementedException();
 }
Example #3
0
 //根据id修改
 public int update(Model.Book book)
 {
     return(bm.update(book));
 }
Example #4
0
 //增加
 public int insert(Model.Book book)
 {
     return(bm.insert(book));
 }
Example #5
0
 /*更新图书*/
 public static bool EditBook(Model.Book book)
 {
     return(DAL.dalBook.EditBook(book));
 }
Example #6
0
 /*添加图书*/
 public static bool AddBook(Model.Book book)
 {
     return(DAL.dalBook.AddBook(book));
 }