Exemple #1
0
        public bool LoginAuth(string loginID, string password)
        {
            try
            {
                bool flag = false;
                LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();
                flag = libraryDA.LoginAuth(loginID, password);

                return(flag);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Exemple #2
0
        public bool UpdateBook(NewBook newBook)
        {
            bool flag = false;
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();
            Book book = new Book();

            book.Book_Number = newBook.BookNumber;
            book.Book_Name   = newBook.BookName;
            book.Publication = newBook.Publication;
            book.Author      = newBook.Author;
            book.Quantity    = newBook.Quantity;
            book.Category_ID = newBook.CategoryID;

            flag = libraryDA.UpdateBook(book);
            return(flag);
        }
Exemple #3
0
        public bool RegistrationAdd(AddRegistration signUp)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();
            Registration           reg       = new Registration();
            bool flag = false;

            reg.Student_Number = signUp.StudentNumber;
            reg.Name           = signUp.StudentName;
            reg.E_mail_ID      = signUp.EmailID;
            reg.Gender         = signUp.Gender;
            reg.Address        = signUp.Address;
            reg.Contact_Number = signUp.ContactNumber;

            flag = libraryDA.RegistrationAdd(reg, signUp.Password);

            return(flag);
        }
Exemple #4
0
        public List <BookCategory> GetAllCategory()
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.GetAllCategory());
        }
Exemple #5
0
        public List <Book> SearchBooks(string searchData)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.SearchBooks(searchData));
        }
Exemple #6
0
        public List <Book> GetAllBooks()
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.GetAllBooks());
        }
Exemple #7
0
        public bool DeleteBook(int bookNumber)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.DeleteBook(bookNumber));
        }
Exemple #8
0
        public String GetCategory(int categoryID)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.GetCategory(categoryID));
        }
Exemple #9
0
        public bool DeleteBookIssues(int studentID, int bookNumber)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.DeleteBookIssues(studentID, bookNumber));
        }
Exemple #10
0
        public List <BookIssue> GetDataByID(int studentID)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.GetDataByID(studentID));
        }
Exemple #11
0
        public Book GetBookByID(int bookNumber)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.GetBookByID(bookNumber));
        }
Exemple #12
0
        public bool ValidateID(int studentID)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.ValidateID(studentID));
        }
Exemple #13
0
        public bool NewBookIssue(BookIssue book)
        {
            LibraryDataAccessLogic libraryDA = new LibraryDataAccessLogic();

            return(libraryDA.NewBookIssue(book));
        }