Esempio n. 1
0
 public ReadingController(
     IUnitOfWork<BooksContext> unitOfWork,
     IReadingsRepository repo,  
     IBooksRepository bookRepo,
     IBookBadgeRepository badgeRepo)
 {
     _unitOfWork = unitOfWork;
     _repo = repo;
     _bookRepo = bookRepo;
     _badgeRepo = badgeRepo;
 }
Esempio n. 2
0
 public BooksController(IUnitOfWork<BooksContext> unitOfWork, 
     IBooksRepository repo, 
     ICategoryRepository categoryRepository, 
     IBookBadgeRepository badgeRepo,
     IAuthorRepository authorRepo)
 {
     _categoryRepository = categoryRepository;
     _unitOfWork = unitOfWork;
     _repo = repo;
     _badgeRepo = badgeRepo;
     _authorRepo = authorRepo;
 }
 public EarnedBadgesController(IUnitOfWork<BooksContext> unitOfWork, IBookBadgeRepository repo)
 {
     _repo = repo;
     _unitOfWork = unitOfWork;
 }