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