public AnalyticsBusiness(MongoDbSettings settings)
        {
            var clientSettings = MongoClientSettings.FromUrl(new MongoUrl(settings.ConnectionString));
            var client         = new MongoClient(clientSettings);

            _context = new CsetContext(settings);
        }
Exemple #2
0
 public LoginController(IConfiguration config, CsetContext context, IUserBusiness userBusiness)
 {
     this.config       = config;
     this.context      = context;
     this.userBusiness = userBusiness;
 }
 public DashboardBusiness(MongoDbSettings settings)
 {
     _context = new CsetContext(settings);
 }