public BookWishListsController(IBookDomainService bookService, IWishListDomainService wishListService, IBookWishListDomainService bookWishListService) { _bookService = bookService; _wishListService = wishListService; _bookWishListService = bookWishListService; }
public WishListDomainService(IBookWishListDomainService bookWishListService) { database = new AppDbContext(); wishLists = database.WishList.AsNoTracking().ToList(); booksInWishlists = database.BookWishList.Include(bookInWishList => bookInWishList.WishList) .AsNoTracking().ToList(); _bookWishListService = bookWishListService; }