示例#1
0
        public AppController(IConfigurationRoot config,
                             IBookstoreRepository repository)

        {
            _config     = config;
            _repository = repository;
        }
示例#2
0
 public BookController(IBookstoreRepository <Book> bookRepository, IBookstoreRepository <Author> authorRepository,
                       IHostingEnvironment hosting)
 {
     this.bookRepository   = bookRepository;
     this.authorRepository = authorRepository;
     this.hosting          = hosting;
 }
示例#3
0
        public BookController(IBookstoreRepository <Book> bookRepository,
                              IBookstoreRepository <Author> authorRepository

                              )
        {
            this.bookRepository   = bookRepository;
            this.authorRepository = authorRepository;
        }
示例#4
0
 public StoragesController(IBookstoreRepository repository, ILogger <StoragesController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
示例#5
0
 public BookController(IBookstoreRepository <Book> bookstore)
 {
     this.bookstore = bookstore;
 }
示例#6
0
 public AuthorController(IBookstoreRepository <Author> AuthorRepositry)
 {
     this.authorRepositry = AuthorRepositry;
 }
        //This was some of the stuff we changed. All I really know is we are passing
        //the data into the view by accessing the repository stored in the database.

        public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository)
        {
            _logger     = logger;
            _repository = repository;
        }
 //constructor
 public CartModel(IBookstoreRepository repo, Cart cartService)
 {
     repository = repo;
     Cart       = cartService;
 }
 public BooksController(IBookstoreRepository repo)
 {
     db = repo;
 }
示例#10
0
 public PhotosController(IBookstoreRepository repo, IMapper mapper, ICloudinaryConfig cloudinaryConfig)
 {
     _mapper           = mapper;
     _repo             = repo;
     _cloudinaryConfig = cloudinaryConfig;
 }
示例#11
0
 public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository)
 {
     _logger = logger;
     //Set the private repository equal to the repository that was passed in
     _repository = repository;
 }
示例#12
0
 public AuthorController(IBookstoreRepository <Author> authorRepo)
 {
     this.authorRepo = authorRepo;
 }
 public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository, BookstoreDbContext context)
 {
     _logger     = logger;
     _repository = repository;
     _context    = context;
 }
示例#14
0
 public BookController(IBookstoreRepository <Book> bookRepository, IBookstoreRepository <Auther> autherRepository, IWebHostEnvironment webHostEnvironment)
 {
     this.bookRepository     = bookRepository;
     AutherRepository        = autherRepository;
     this.webHostEnvironment = webHostEnvironment;
 }
 public AuthorsController(IBookstoreRepository repo)
 {
     this.db = repo;
 }
示例#16
0
 public BookstoreService(IBookstoreRepository bookstoreRepository)
 {
     _bookstoreRepository = bookstoreRepository;
 }
 public BooksController(IBookstoreRepository rep)
 {
     _rep = rep;
 }
示例#18
0
 public CartController(IBookstoreRepository repository, ILogger <CartController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
示例#19
0
 //Constructor
 public DonateModel(IBookstoreRepository repo)
 {
     repository = repo;
 }
示例#20
0
 public AutherController(IBookstoreRepository <Auther> AutherRepository)
 {
     autherRepository = AutherRepository;
 }
示例#21
0
 public BookService(IBookstoreRepository bookstoreRepository) : base(bookstoreRepository)
 {
     _iBookstoreRepository = bookstoreRepository;
 }
示例#22
0
 public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository)
 {
     //Makes the private repository a public repository
     _logger     = logger;
     _repository = repository;
 }
示例#23
0
 public PublishersController(IBookstoreRepository rep)
 {
     _rep = rep;
 }
示例#24
0
 public BooksController(IBookstoreRepository repository, ILogger <BooksController> logger, IUrlHelper urlHelper)
 {
     _repository = repository;
     _logger     = logger;
     _urlHelper  = urlHelper;
 }
 public NavigationMenuViewComponent(IBookstoreRepository r)
 {
     repository = r;
 }
示例#26
0
        private IBookstoreRepository _repository;                                               //New private repository

        public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository) //Added IBookstoreRepository repository
        {
            _logger     = logger;
            _repository = repository; //Assign the value
        }