public UserService(IUserRepository repo,
                    IAdvertRepository advertRepo,
                    IUserValidator userValidator,
                    IAdvertValidator advertValidator,
                    IUserMapper userMapper,
                    IAdvertMapper advertMapper,
                    IOptions <AppSettings> appSettings)
 {
     _repo            = repo;
     _advertRepo      = advertRepo;
     _userValidator   = userValidator;
     _advertValidator = advertValidator;
     _userMapper      = userMapper;
     _advertMapper    = advertMapper;
     _appSettings     = appSettings.Value;
 }
 public AdvertService(IAdvertRepository repo, IAdvertValidator validator, IAdvertMapper mapper)
 {
     _repo      = repo;
     _validator = validator;
     _mapper    = mapper;
 }