Example #1
0
 public CheckoutService(ICheckoutRespository checkOutRepository, IUnitOfWork unitOfWork, LibraryAssistantDbContext context, IBookRespository bookRespository)
 {
     _checkOutRepository = checkOutRepository;
     _unitOfWork         = unitOfWork;
     _context            = context;
     _bookRespository    = bookRespository;
 }
Example #2
0
 //Constructor
 public DonateModel(IBookRespository repo)
 {
     repository = repo;
 }
 //You can write this one
 public NavigationMenuViewComponent(IBookRespository repo)
 {
     repository = repo;
 }
Example #4
0
 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;
 }
Example #7
0
 public BookService(IBookRespository bookRepository, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _bookRepository = bookRepository;
     _unitOfWork     = unitOfWork;
     _mapper         = mapper;
 }