Exemple #1
0
 public BookLibrariesController(IBookDomainService bookService, ILibraryDomainService libraryService,
                                IBookLibraryDomainService bookLibraryService)
 {
     _bookService        = bookService;
     _libraryService     = libraryService;
     _bookLibraryService = bookLibraryService;
 }
Exemple #2
0
 public LibraryDomainService(IBookLibraryDomainService bookLibraryService)
 {
     database         = new AppDbContext();
     libraries        = database.Library.AsNoTracking().ToList();
     booksInLibraries = database.BookLibrary.Include(bookInLibrary => bookInLibrary.Library)
                        .AsNoTracking().ToList();
     _bookLibraryService = bookLibraryService;
 }