Пример #1
0
        public BookService(LibraryContext context)
        {
            this.booksRepository = context.Item1;

            this.borrowService = new BorrowService(context);
            this.personService = new PersonService(context);
        }
 public BorrowingsController(IBorrowingService borrowingService,
                             IApplicationUserService applicationUserService,
                             IBookService bookService)
 {
     _borrowingService       = borrowingService;
     _applicationUserService = applicationUserService;
     _bookService            = bookService;
 }
 public BorrowingController(IBorrowingService borrowingService, IGameService gameService, IFriendService friendService)
 {
     _borrowingService = borrowingService;
     _gameService      = gameService;
     _friendService    = friendService;
 }
Пример #4
0
 // GET: Borrowing
 public BorrowingController(IRepository <BorrowedSubject> borrowedSubjects, IBorrowingService borrowingService, IRepository <Subject> subjects)
 {
     borrowedSubjectsContext = borrowedSubjects;
     BorrowingService        = borrowingService;
     SubjectContext          = subjects;
 }
 public BookHistoryViewComponent(IBorrowingService borrowingService)
 {
     _borrowingService = borrowingService;
 }
Пример #6
0
 public PersonService(LibraryContext context)
 {
     this.bookRepository   = context.Item1;
     this.peopleRepository = context.Item2;
     this.borrowingService = new BorrowService(context);
 }