public UsersController(IDbRepo repository, IMapper mapper, UserContext context) { _repository = repository; _mapper = mapper; _context = context; }
public EmployeeController(IDbRepo repo) { this.repo = repo; }
public AccountController(IConfiguration config, IPasswordHasher passwordHasher, IDbRepo dbRepo) { _config = config; _passwordHasher = passwordHasher; _dbRepo = dbRepo; }
// intialise this repo with a dependency injection public TodoController(IDbRepo _Repo) { this.dRepo = _Repo; }
public CelebsBl(IDbRepo <Celebrity> dbRepo, IReader <Celebrity> reader) { this.dbRepo = dbRepo; this.reader = reader; }
public ProductController(ILogger <ProductController> logger, IProductScraping scraping, IDbRepo dbRepo) { _logger = logger; this.scraping = scraping; this.dbRepo = dbRepo; }
public void init() { repo = new DbRepo(); }
public DataStoreRepo(string dbPath) { dataStore = new SqliteDataStore(dbPath); }
public HomeController(IDbRepo repo) { _repo = repo; logger = AppLogger.Logger.ForContext<HomeController>(); }
public SalesStatsController(IDbRepo dbRepo, IConfiguration configuration, ILogger <SalesStatsController> logger) { _logger = logger; _configuration = configuration; _dbRepo = dbRepo; }
public DepartmentController(IDbRepo repo) { this.repo = repo; }