Пример #1
0
        public UsersController(VenjixContext context, IDataTables dataTables, IMapper mapper)
        {
            _context    = context;
            _dataTables = dataTables;
            _mapper     = mapper;

            _rolesSelectItems = Roles.AllRoles.Select(x => new SelectListItem(x, x)).ToList();
        }
Пример #2
0
 public HomeController(ILogger <HomeController> logger, IVenjixOptionsService optionsService, IMapper mapper, ITelegramService telegramService, HealthCheckService healthCheck, VenjixContext context)
 {
     _logger          = logger;
     _optionsService  = optionsService;
     _mapper          = mapper;
     _telegramService = telegramService;
     _healthCheck     = healthCheck;
     _context         = context;
 }
Пример #3
0
 public VisualizeController(VenjixContext context)
 {
     _context         = context;
     _updateIntervals = new List <SelectListItem>
     {
         new SelectListItem("Don't auto update", "0"),
         new SelectListItem("Every 10 seconds", "10"),
         new SelectListItem("Every 30 seconds", "30"),
         new SelectListItem("Every minute", "60"),
         new SelectListItem("Every 5 minutes", "300"),
         new SelectListItem("Every 10 minutes", "600"),
         new SelectListItem("Every 15 minutes", "900"),
         new SelectListItem("Every 30 minutes", "1800"),
         new SelectListItem("Every hour", "3600")
     };
 }
Пример #4
0
 public SensorsController(VenjixContext context, IDataTables dataTables, IMapper mapper)
 {
     _context    = context;
     _dataTables = dataTables;
     _mapper     = mapper;
 }
Пример #5
0
 public ForecastController(VenjixContext context, IForecastingService forecastingService, IMapper mapper)
 {
     _context            = context;
     _forecastingService = forecastingService;
     _mapper             = mapper;
 }
Пример #6
0
 public ApiDataController(VenjixContext context, ITriggerRunnerService triggerRunner, IVenjixOptionsService optionsService)
 {
     _context        = context;
     _triggerRunner  = triggerRunner;
     _optionsService = optionsService;
 }
Пример #7
0
 public LoginController(VenjixContext context)
 {
     _context = context;
 }