Пример #1
0
 public PlantRepository(PlantAppDbContext context)
 {
     this.context = context;
 }
Пример #2
0
 public PlantService(PlantAppDbContext context)
 {
     this.plantRepository = new PlantRepository(context);
     this.plantFactory    = new PlantFactory();
     this.userRepository  = new UserRepository(context);
 }