public CheckoutService(ICheckoutRespository checkOutRepository, IUnitOfWork unitOfWork, LibraryAssistantDbContext context, IBookRespository bookRespository) { _checkOutRepository = checkOutRepository; _unitOfWork = unitOfWork; _context = context; _bookRespository = bookRespository; }
//Constructor public DonateModel(IBookRespository repo) { repository = repo; }
//You can write this one public NavigationMenuViewComponent(IBookRespository repo) { repository = repo; }
public HomeController(IBookRespository bookRespository, ITheLoaiRepository theLoaiRepository) { this.bookRespository = bookRespository; this.theLoaiRepository = theLoaiRepository; }
//Constructor public CartModel(IBookRespository repo, Cart cartService) { repository = repo; Cart = cartService; }
//Controller public HomeController(ILogger <HomeController> logger, IBookRespository respository) { _logger = logger; _respository = respository; }
public BookService(IBookRespository bookRepository, IUnitOfWork unitOfWork, IMapper mapper) { _bookRepository = bookRepository; _unitOfWork = unitOfWork; _mapper = mapper; }