Пример #1
0
 public DietPlanService(GenericAccessInterface genericAccess, DietPlansAccessInterface dietPlansAccess)
 {
     _dietPlanAccess = dietPlansAccess;
     _genericAccess  = genericAccess;
 }
Пример #2
0
 public DietPlanController(GenericAccessInterface genericAccess, DietPlansAccessInterface dietPlansAccess)
 {
     _genericAccess   = genericAccess;
     _dietPlansAccess = dietPlansAccess;
     _service         = new DietPlanService(_genericAccess, _dietPlansAccess);
 }