示例#1
0
 public PeopleController(IPeopleService peopleService,                       // Constructor dependency injection
                         ILanguageService languageService,
                         IPersonLanguageRepo personLanguageRepo,
                         IPersonGroupRepo personGroupRepo,
                         ICityService cityService)
 {
     _peopleService      = peopleService;
     _languageService    = languageService;
     _personLanguageRepo = personLanguageRepo;
     _personGroupRepo    = personGroupRepo;
     _cityService        = cityService;
 }
示例#2
0
 public PeopleService(IPeopleRepo peopleRepo, IPersonGroupRepo personGroupRepo, ICityService cityService)
 {
     _peopleRepo      = peopleRepo;
     _personGroupRepo = personGroupRepo;
     _cityService     = cityService;
 }