コード例 #1
0
ファイル: Account.cs プロジェクト: Getready1/SocialNetwork
        public bool IsValid(RegisterViewModel user)
        {
            if (user == null)
                return false;

            if (string.IsNullOrEmpty(user.FirstName))
                return false;
            if (string.IsNullOrEmpty(user.LastName))
                return false;
            if (string.IsNullOrEmpty(user.Email))
                return false;
            if (string.IsNullOrEmpty(user.Password))
                return false;

            return true;
        }
コード例 #2
0
 public void Register(RegisterViewModel user)
 {
     _account.Register(user);
 }
コード例 #3
0
ファイル: Account.cs プロジェクト: Getready1/SocialNetwork
 public void Register(RegisterViewModel user)
 {
     this._registerService.Register(user.FirstName, user.LastName, user.Password, user.Email, user.Gender);
 }