Beispiel #1
0
 /// <summary>
 /// Book_Keeper下拉選單
 /// </summary>
 /// <returns></returns>
 public List <NET_MVC_WorkShop2.Model.BookData> GetBook_Keeper()
 {
     NET_MVC_WorkShop2.Dao.BookDao bookDao = new Dao.BookDao();
     return(bookDao.GetBook_Keeper());
 }
Beispiel #2
0
 /// <summary>
 /// 編輯書籍資訊
 /// </summary>
 public List <NET_MVC_WorkShop2.Model.BookData> UpdateDetail(string BookId)
 {
     NET_MVC_WorkShop2.Dao.BookDao bookDao = new Dao.BookDao();
     return(bookDao.UpdateDetail(BookId));
 }
Beispiel #3
0
        /// <summary>
        /// 刪除書籍
        /// </summary>

        public int DeleteBookById(string BookId)
        {
            NET_MVC_WorkShop2.Dao.BookDao bookDao = new Dao.BookDao();
            return(bookDao.DeleteBookById(BookId));
        }
Beispiel #4
0
 /// <summary>
 /// 修改書籍
 /// </summary>
 /// <returns>書籍編號</returns>
 public int UpdateBook(NET_MVC_WorkShop2.Model.BookData book)
 {
     NET_MVC_WorkShop2.Dao.BookDao bookDao = new Dao.BookDao();
     return(bookDao.UpdateBook(book));
 }
Beispiel #5
0
 /// <summary>
 /// 新增書籍
 /// </summary>
 /// <param name="book"></param>
 /// <returns>書籍編號</returns>
 public int InsertBook(NET_MVC_WorkShop2.Model.BookData book)
 {
     NET_MVC_WorkShop2.Dao.BookDao bookDao = new Dao.BookDao();
     return(bookDao.InsertBook(book));
 }
Beispiel #6
0
 /// <summary>
 /// 查詢書籍
 /// </summary>
 /// <returns></returns>
 public List <NET_MVC_WorkShop2.Model.BookData> GetBookByCondtioin(NET_MVC_WorkShop2.Model.BookSearchArg arg)
 {
     NET_MVC_WorkShop2.Dao.BookDao bookDao = new Dao.BookDao();
     return(bookDao.GetBookByCondtioin(arg));
 }