Example #1
0
        /// <summary>
        /// Check if the ISBN if present in the viewBookBorrowed table
        /// </summary>
        /// <param name="ISBN">string</param>
        /// <returns></returns>
        public List <ViewBookBorrowedModel> CheckBookSelected(string ISBN)
        {
            List <ViewBookBorrowedModel> _books = new List <ViewBookBorrowedModel>();

            _borrowTable = _bookDao.CheckBookBorrowed(ISBN);

            foreach (DataSet1.ViewBookBorrowedRow booksRow in _borrowTable.Rows)
            {
                ViewBookBorrowedModel tempRow = ViewBookBorrowedModel.Parse(booksRow);
                _books.Add(tempRow);
            }

            return(_books);
        }