Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public void Register(RegisterViewModel user)
 {
     this._registerService.Register(user.FirstName, user.LastName, user.Password, user.Email, user.Gender);
 }