public IActionResult GetDeviceType([FromRoute] Guid guid) { var deviceType = deviceTypeService.GetByGuid(guid); if (deviceType == null) { return(NotFound()); } return(Ok(deviceType)); }