Ejemplo n.º 1
0
        /// <summary>
        /// Authenticates the user.
        /// </summary>
        /// <returns>User data with validation information.</returns>
        public User AuthenticateUser(string userName, string password)
        {
            var userData = new User
            {
                UserName = userName,
                Password = password
            };

            userData.IsValid = UserDataAccesor.ValidateUser(userData);
            return(userData);
        }