fix: string empt
This commit is contained in:
parent
54b0381692
commit
1b6db3c510
|
|
@ -58,7 +58,7 @@ public class UserViewModel
|
|||
FirstName = user.FirstName,
|
||||
LastName = user.LastName,
|
||||
Email = user.Email,
|
||||
Phone = (!string.IsNullOrWhiteSpace(user.Phone) && user.Phone.Length > 3) ? (user.Phone.Substring(0, 3) == "+86" ? user.Phone.Substring(3) : user.Phone) : user.Phone,
|
||||
Phone = !string.IsNullOrWhiteSpace(user.Phone) && user.Phone.Length > 3 ? user.Phone.Replace("+86", String.Empty) : user.Phone,
|
||||
Type = user.Type,
|
||||
Role = user.Role,
|
||||
Source = user.Source,
|
||||
|
|
|
|||
Loading…
Reference in a new issue