public IActionResult GetDevice([FromRoute] string deviceName) { var deviceObj = _deviceLogic.GetDevice(deviceName); if (deviceObj == null) { return(NotFound()); } return(Ok(deviceObj)); }