public PersonController(IListPersonService listPersonService, IInsertPerson insertPerson, IEditPersonService editPerson, IDeletePersonService deletePersonService) { _listPersonService = listPersonService; _insertPerson = insertPerson; _editPerson = editPerson; _deletePersonService = deletePersonService; }
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; }