示例#1
0
        public Book SelectBookById(int bookID)
        {
            AdoConnected dal  = new AdoConnected();
            Book         book = dal.SelectBookById(bookID);

            return(book);
        }
示例#2
0
        public void UpdateBook(Book book)
        {
            //update using dal layer
            AdoConnected dal = new AdoConnected();

            dal.UpdateBookById(book);
        }
示例#3
0
        public List <Book> SelectBookByBookName(string bookName)
        {
            AdoConnected dal      = new AdoConnected();
            List <Book>  lstBooks = new List <Book>();

            lstBooks = dal.SelectBookByBookName(bookName);
            return(lstBooks);
        }
示例#4
0
        public List <Book> GetAllBooks()
        {
            List <Book> lstBooks = new List <Book>();
            //get the records from Data Access Layer
            AdoConnected dal = new AdoConnected();

            lstBooks = dal.SelectAllBooks();
            return(lstBooks);
        }
示例#5
0
        public void DeleteBook(int bookID)
        {
            AdoConnected dal = new AdoConnected();

            dal.DeleteBook(bookID);
        }
示例#6
0
        public void AddBook(Book book)
        {
            AdoConnected dal = new AdoConnected();

            dal.InsertBook(book);
        }