public IHttpActionResult GetDeviceCommands() { Guid currentDeviceId = StaticContext.GetCurrentDeviceId(); DeviceDomain deviceDomain = new DeviceDomain(); string[] commands = deviceDomain.GetDeviceCommands(currentDeviceId); return(Ok(commands)); }
public IHttpActionResult GetDeviceConfig() { DeviceDomain deviceDomain = new DeviceDomain(); Guid currentDeviceId = StaticContext.GetCurrentDeviceId(); DeviceConfig config = deviceDomain.GetDeviceConfig(currentDeviceId); return(Ok(config)); }