Esempio n. 1
0
 public NavigationMenuViewComponent(IOnlineBookStoreRepository r)
 {
     repository = r;
 }
Esempio n. 2
0
        public int PageSize = 5; // here is the number of items to display per page

        public HomeController(ILogger <HomeController> logger, IOnlineBookStoreRepository repository)
        {
            _logger     = logger;
            _repository = repository;
        }
 // Constructor for PurchaseModel
 public PurchaseModel(IOnlineBookStoreRepository repo, Cart cartService)
 {
     repository = repo;
     Cart       = cartService;
 }