Esempio n. 1
0
 public EmployeesController(IWrapperRepository wrapperRepository, IOptions <CustomConfigOptions> options,
                            IMapper mapper
                            )
 {
     this.wrapperRepository = wrapperRepository;
     this.mapper            = mapper;
     this.configOptions     = options.Value;
 }
Esempio n. 2
0
 public EmployeesController(IWrapperRepository wrapperRepository, IOptions <CustomConfigOptions> options
                            , IMapper mapper, IDistributedCache distributedCache, CRMContext context)
 {
     this.wrapperRepository = wrapperRepository;
     this.mapper            = mapper;
     this.distributedCache  = distributedCache;
     this.context           = context;
     this.configOptions     = options.Value;
 }