public UserController(IOTContext context, IMapper mapper, IConfiguration config) { _service = new UserService(context); _config = config; _mapper = mapper; _serviceService = new ServiceService(context); }
public DataController(IOTContext context, IMapper mapper) { _service = new ServiceLogService(new ServiceLogStorage(context)); _servicesService = new ServiceService(context); _servicePropertiesService = new ServicePropertiesService(context); _mapper = mapper; }
public async virtual Task <IActionResult> All() { using (var context = new IOTContext()) { var devices = context.Device.ToList(); return(this.Ok(devices)); } }
public ServiceLogStorage(IOTContext context) { _context = context; }
public CountrySignalsRepository(IOTContext iotContext) { _iotContext = iotContext; }
public ServiceService(IOTContext context) { _context = context; }
public ServiceController(IOTContext context, IMapper mapper) { _service = new ServiceService(context); _mapper = mapper; }
public ServicePropertiesService(IOTContext context) { _context = context; }
public UserService(IOTContext context) { _context = context; }