diff options
Diffstat (limited to 'Timeline/Models/UserDetail.cs')
-rw-r--r-- | Timeline/Models/UserDetail.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Timeline/Models/UserDetail.cs b/Timeline/Models/UserDetail.cs index 91439c6a..4af88450 100644 --- a/Timeline/Models/UserDetail.cs +++ b/Timeline/Models/UserDetail.cs @@ -1,12 +1,19 @@ using Timeline.Entities;
+using Timeline.Models.Validation;
namespace Timeline.Models
{
public class UserDetail
{
+ [ValidateWith(typeof(UserDetailValidators.QQValidator))]
public string QQ { get; set; }
+
+ [ValidateWith(typeof(UserDetailValidators.EMailValidator))]
public string EMail { get; set; }
+
+ [ValidateWith(typeof(UserDetailValidators.PhoneNumberValidator))]
public string PhoneNumber { get; set; }
+
public string Description { get; set; }
private static string CoerceEmptyToNull(string value)
|