public AppController(IConfigurationRoot config, IBookstoreRepository repository) { _config = config; _repository = repository; }
public BookController(IBookstoreRepository <Book> bookRepository, IBookstoreRepository <Author> authorRepository, IHostingEnvironment hosting) { this.bookRepository = bookRepository; this.authorRepository = authorRepository; this.hosting = hosting; }
public BookController(IBookstoreRepository <Book> bookRepository, IBookstoreRepository <Author> authorRepository ) { this.bookRepository = bookRepository; this.authorRepository = authorRepository; }
public StoragesController(IBookstoreRepository repository, ILogger <StoragesController> logger) { _repository = repository; _logger = logger; }
public BookController(IBookstoreRepository <Book> bookstore) { this.bookstore = bookstore; }
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; }
public PhotosController(IBookstoreRepository repo, IMapper mapper, ICloudinaryConfig cloudinaryConfig) { _mapper = mapper; _repo = repo; _cloudinaryConfig = cloudinaryConfig; }
public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository) { _logger = logger; //Set the private repository equal to the repository that was passed in _repository = repository; }
public AuthorController(IBookstoreRepository <Author> authorRepo) { this.authorRepo = authorRepo; }
public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository, BookstoreDbContext context) { _logger = logger; _repository = repository; _context = context; }
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; }
public BookstoreService(IBookstoreRepository bookstoreRepository) { _bookstoreRepository = bookstoreRepository; }
public BooksController(IBookstoreRepository rep) { _rep = rep; }
public CartController(IBookstoreRepository repository, ILogger <CartController> logger) { _repository = repository; _logger = logger; }
//Constructor public DonateModel(IBookstoreRepository repo) { repository = repo; }
public AutherController(IBookstoreRepository <Auther> AutherRepository) { autherRepository = AutherRepository; }
public BookService(IBookstoreRepository bookstoreRepository) : base(bookstoreRepository) { _iBookstoreRepository = bookstoreRepository; }
public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository) { //Makes the private repository a public repository _logger = logger; _repository = repository; }
public PublishersController(IBookstoreRepository rep) { _rep = rep; }
public BooksController(IBookstoreRepository repository, ILogger <BooksController> logger, IUrlHelper urlHelper) { _repository = repository; _logger = logger; _urlHelper = urlHelper; }
public NavigationMenuViewComponent(IBookstoreRepository r) { repository = r; }
private IBookstoreRepository _repository; //New private repository public HomeController(ILogger <HomeController> logger, IBookstoreRepository repository) //Added IBookstoreRepository repository { _logger = logger; _repository = repository; //Assign the value }