public async Task <Authors> UpdateAuthor(Authors author)
        {
            if (!_dbContext.Authors.Local.Any(a => a.AuthorId == author.AuthorId))
            {
                _dbContext.Authors.Attach(author);
            }
            _dbContext.Entry(author).State = EntityState.Modified;
            await _dbContext.SaveChangesAsync();

            return(author);
        }
        public async Task <Titles> UpdateBook(Titles title)
        {
            if (!_dbContext.Titles.Local.Any(a => a.Isbn == title.Isbn))
            {
                _dbContext.Titles.Attach(title);
            }
            _dbContext.Entry(title).State = EntityState.Modified;
            await _dbContext.SaveChangesAsync();

            return(title);
        }