public DashboardController(IUserRepository userRepository, IGlobalSettings globalSettings, ICacheServicecs cache, IMapper mapper) { _userRepository = userRepository; _globalSettings = globalSettings; _cache = cache; _mapper = mapper; }
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>(); }
public HomeController( IUserRepository userRepository, IGlobalSettings globalSettings, IMapper mapper, ICacheServicecs cache) { _userRepository = userRepository; _globalSettings = globalSettings; _mapper = mapper; _cache = cache; }
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"]; }