예제 #1
0
 public CupcakeController(ICupcakeRepository thisRepo = null)
 {
     if (thisRepo == null)
     {
         this.cupcakeRepo = new EFCupcakeRepository();
     }
     else
     {
         this.cupcakeRepo = thisRepo;
     }
 }
예제 #2
0
 public CupcakeController(ICupcakeRepository repository)
 {
     _repository = repository;
 }
예제 #3
0
 public CupcakeController(ICupcakeRepository repository, IHostingEnvironment environment)
 {
     _repository  = repository;
     _environment = environment;
 }
예제 #4
0
 private CupcakeController(ICupcakeRepository repository, IWebHostEnvironment environment)
 {
     _repository  = repository;
     _environment = environment;
 }