public async Task <ActionResult> DeleteConfirmed(int id)
        {
            BooksInfoEntry booksInfoEntry = await db.BooksInfoEntries.FindAsync(id);

            db.BooksInfoEntries.Remove(booksInfoEntry);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Book_ID,Book_Name,Author_Name,Publication,Purchase_Date,Book_Price,Books_Quantity")] BooksInfoEntry booksInfoEntry)
        {
            if (ModelState.IsValid)
            {
                db.Entry(booksInfoEntry).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(booksInfoEntry));
        }
        // GET: BooksInfoEntries/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BooksInfoEntry booksInfoEntry = await db.BooksInfoEntries.FindAsync(id);

            if (booksInfoEntry == null)
            {
                return(HttpNotFound());
            }
            return(View(booksInfoEntry));
        }