public UsersController(VenjixContext context, IDataTables dataTables, IMapper mapper) { _context = context; _dataTables = dataTables; _mapper = mapper; _rolesSelectItems = Roles.AllRoles.Select(x => new SelectListItem(x, x)).ToList(); }
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; }
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") }; }
public SensorsController(VenjixContext context, IDataTables dataTables, IMapper mapper) { _context = context; _dataTables = dataTables; _mapper = mapper; }
public ForecastController(VenjixContext context, IForecastingService forecastingService, IMapper mapper) { _context = context; _forecastingService = forecastingService; _mapper = mapper; }
public ApiDataController(VenjixContext context, ITriggerRunnerService triggerRunner, IVenjixOptionsService optionsService) { _context = context; _triggerRunner = triggerRunner; _optionsService = optionsService; }
public LoginController(VenjixContext context) { _context = context; }