禁止ASP.NET MVC模型绑定时将空字符串绑定为null
为model添加[DisplayFormat(ConvertEmptyStringToNull = false)]
[DisplayFormat(ConvertEmptyStringToNull = false)] public string ContactPhone { get; set; }
为model添加[DisplayFormat(ConvertEmptyStringToNull = false)]
[DisplayFormat(ConvertEmptyStringToNull = false)] public string ContactPhone { get; set; }