Example #1
0
        /// <summary>
        /// Method to insert book
        /// </summary>
        /// <param name="bookName">Book Name</param>
        /// <param name="authorName">Author Name o</param>
        /// <param name="price">Price of the book</param>
        /// <param name="quantityOfBooks">Quantity Of Books</param>

        public void AddNewBook(string bookName, string authorName, int priceOfBook, int quantityOfBooks)
        {
            BookName        = bookName;
            AuthorName      = authorName;
            PriceOfBook     = priceOfBook;
            QuantityOfBooks = quantityOfBooks;
            objDataLayer.AddNewBook(BookName, AuthorName, PriceOfBook, QuantityOfBooks);
        }