public PetitionService(IMapper mapper, IPetitionRepository petitionRepository, IAdService adService, IIdentityService identityService) { _petitionRepository = petitionRepository; _mapper = mapper; _adService = adService; _identityService = identityService; }
/// <summary> /// Default constructor (no DI yet). /// </summary> public PetitionController() { this.petitionRepository = new PetitionRepository(); this.petitionVoteRepository = new PetitionVoteRepository(); this.petitionLevelRepository = new PetitionLevelRepository(); this.entityRepository = new EntityRepository(); this.regionRepository = new RegionRepository(); }