Пример #1
0
 public PersonController(IListPersonService listPersonService, IInsertPerson insertPerson, IEditPersonService editPerson, IDeletePersonService deletePersonService)
 {
     _listPersonService   = listPersonService;
     _insertPerson        = insertPerson;
     _editPerson          = editPerson;
     _deletePersonService = deletePersonService;
 }
Пример #2
0
 public PersonController(PersonDBContext context,
                         IAddPersonService addPersonService,
                         IUpdatePersonService updatePersonService,
                         IDeletePersonService deletePersonService,
                         ICountePersonsService countePersonsService,
                         IGetPersonsService getPersonsService)
 {
     _context = context;
     this.addPersonService     = addPersonService;
     this.updatePersonService  = updatePersonService;
     this.deletePersonService  = deletePersonService;
     this.countePersonsService = countePersonsService;
     this.getPersonsService    = getPersonsService;
 }