Exemple #1
0
 public DashboardController(IUserRepository userRepository, IGlobalSettings globalSettings, ICacheServicecs cache,
                            IMapper mapper)
 {
     _userRepository = userRepository;
     _globalSettings = globalSettings;
     _cache          = cache;
     _mapper         = mapper;
 }
Exemple #2
0
 public SystemSettingController(IUserRepository userRepository, IPermissionRepository permissionUser, IGlobalSettings globalSettings, ICacheServicecs cache, IServiceProvider serviceProvider)
 {
     _userRepository   = userRepository;
     _globalSettings   = globalSettings;
     _cache            = cache;
     m_ServiceProvider = serviceProvider;
     _permissionUser   = permissionUser;
     _currentUser      = _globalSettings.CurrentUser;
     _context          = m_ServiceProvider.CreateScope().ServiceProvider.GetService <LibraryDbContext>();
 }
Exemple #3
0
 public HomeController(
     IUserRepository userRepository, IGlobalSettings globalSettings,
     IMapper mapper,
     ICacheServicecs cache)
 {
     _userRepository = userRepository;
     _globalSettings = globalSettings;
     _mapper         = mapper;
     _cache          = cache;
 }
Exemple #4
0
 public GlobalSettings(IHttpContextAccessor accessor, IServiceProvider serviceProvider, ICacheServicecs cacheServicecs)//, IMapper mapper)
 {
     _accessor         = accessor;
     m_ServiceProvider = serviceProvider;
     _cacheServicecs   = cacheServicecs;
     //_mapper = mapper;
     _scope        = m_ServiceProvider.CreateScope();
     context       = _scope.ServiceProvider.GetService <LibraryDbContext>();
     Configuration = _builder.Build();
     _cookieName   = Configuration["System:CookieName"];
 }