public ToolsController(IDevicesRepository devicesRepository, IGroupsRepository groupsRepository, ICommandsRepository commandsRepository, IInterfacesRepository interfacesRepository, IDeviceAccountsRepository accountsRepository, Func <string, IDeviceTools> serviceAccessor, IHelper helper) { _devicesRepository = devicesRepository; _groupsRepository = groupsRepository; _interfacesRepository = interfacesRepository; _commandsRepository = commandsRepository; _accountsRepository = accountsRepository; _helper = helper; _serviceAccessor = serviceAccessor; }
public DevicesController(IDevicesRepository devicesRepository, IGroupsRepository groupsRepository, IInterfacesRepository interfacesRepository, IModelRepository modelRepository, IDeviceAccountsRepository accountsRepository, IHelper helper) { _devicesRepository = devicesRepository; _groupsRepository = groupsRepository; _interfacesRepository = interfacesRepository; _modelRepository = modelRepository; _accountsRepository = accountsRepository; _helper = helper; DeviceVM = new DeviceViewModel { Groups = new List <Group>() }; }