ABsoluteMaybe.SampleWebsite.MVC2.Models.AccountMembershipService.ValidateUser C# (CSharp) Метод

ValidateUser() публичный метод

public ValidateUser ( string userName, string password ) : bool
userName string
password string
Результат bool
        public bool ValidateUser(string userName, string password)
        {
            if (String.IsNullOrEmpty(userName)) throw new ArgumentException("Value cannot be null or empty.", "userName");
            if (String.IsNullOrEmpty(password)) throw new ArgumentException("Value cannot be null or empty.", "password");

            return _provider.ValidateUser(userName, password);
        }