diff --git a/Src/Dlhis.Basic/Device/Response/DevicePermissionManuallyResponse.cs b/Src/Dlhis.Basic/Device/Response/DevicePermissionManuallyResponse.cs index e7504b4f..d421f4c4 100644 --- a/Src/Dlhis.Basic/Device/Response/DevicePermissionManuallyResponse.cs +++ b/Src/Dlhis.Basic/Device/Response/DevicePermissionManuallyResponse.cs @@ -12,6 +12,18 @@ public class DevicePermissionManuallyResponse public string UserNo { get; set; } public string UserName { get; set; } - public DeviceTypeEnumType Type { get; set; } - public string TypeDesc => Type.GetDescription(); + public DeviceTypeEnumType? Type { get; set; } + + public string TypeDesc + { + get + { + if (Type == null) + { + return string.Empty; + } + + return Type.GetDescription(); + } + } } \ No newline at end of file