public async Task <IActionResult> Edit(int id, [Bind("BookId,BookName,BookPrice,BookAuthor")] ComuterScience comuterScience)
        {
            if (id != comuterScience.BookId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(comuterScience);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ComuterScienceExists(comuterScience.BookId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(comuterScience));
        }
        public async Task <IActionResult> Create([Bind("BookId,BookName,BookPrice,BookAuthor")] ComuterScience comuterScience)
        {
            if (ModelState.IsValid)
            {
                _context.Add(comuterScience);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(comuterScience));
        }