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