示例#1
0
 public BookWishListsController(IBookDomainService bookService, IWishListDomainService wishListService,
                                IBookWishListDomainService bookWishListService)
 {
     _bookService         = bookService;
     _wishListService     = wishListService;
     _bookWishListService = bookWishListService;
 }
示例#2
0
        public UserDomainService(ILibraryDomainService libraryService, IWishListDomainService wishListService,
                                 IBookDomainService bookService)
        {
            database = new AppDbContext();
            users    = database.User.Include(user => user.Account).Include(user => user.WishList)
                       .Include(user => user.Library).AsNoTracking().ToList();

            _libraryService  = libraryService;
            _wishListService = wishListService;
            _bookService     = bookService;
        }