public CupcakeController(ICupcakeRepository thisRepo = null) { if (thisRepo == null) { this.cupcakeRepo = new EFCupcakeRepository(); } else { this.cupcakeRepo = thisRepo; } }
public CupcakeController(ICupcakeRepository repository) { _repository = repository; }
public CupcakeController(ICupcakeRepository repository, IHostingEnvironment environment) { _repository = repository; _environment = environment; }
private CupcakeController(ICupcakeRepository repository, IWebHostEnvironment environment) { _repository = repository; _environment = environment; }