public UserWithBooksDB UpdateUserBook(UserWithBooksDB userBooks)
        {
            var userBookDB = _context.UserBooksConnectionDB.Attach(userBooks);

            userBookDB.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            _context.SaveChanges();
            return(userBooks);
        }
        public UserWithBooksDB DeleteUserBookOrder(string Id)
        {
            UserWithBooksDB book = _context.UserBooksConnectionDB.Find(Id);

            if (book != null)
            {
                _context.UserBooksConnectionDB.Remove(book);
                _context.SaveChanges();
            }
            return(book);
        }
 public UserWithBooksDB AddBookToUser(UserWithBooksDB userWithBooksDB)
 {
     throw new NotImplementedException();
 }
 public UserWithBooksDB UpdateUserBook(UserWithBooksDB model)
 {
     throw new NotImplementedException();
 }
 public UserWithBooksDB AddBookToUser(UserWithBooksDB userWithBooksDB)
 {
     _context.UserBooksConnectionDB.Add(userWithBooksDB);
     _context.SaveChanges();
     return(userWithBooksDB);
 }