public async Task <ActionResult> UpdateTitle([FromRoute] int bookId, [FromBody] string title)
        {
            var book = await _context.BooksInInventory().SingleOrDefaultAsync(b => b.Id == bookId);

            if (book == null)
            {
                return(NotFound());
            }
            else
            {
                book.Title = title;
                await _context.SaveChangesAsync();

                return(NoContent());
            }
        }
        public async Task <ActionResult> UpdateTitle([FromRoute] int bookId, [FromBody] string title)
        {
            var book = await _context.BooksInInventory()
                       .Where(b => b.Id == bookId)
                       .SingleOrDefaultAsync();

            if (book == null)
            {
                return(NotFound());
            }
            else
            {
                // is the title not null ** is it less than 200 characters, if not - 400
                book.Title = title;
                await _context.SaveChangesAsync();

                return(NoContent());
            }
        }