ScrewTurn.Wiki.Host.FindUser C# (CSharp) Method

FindUser() public method

Finds a user by username, properly handling Users Storage Providers.
If username is null. If username is empty.
public FindUser ( string username ) : UserInfo
username string The username.
return UserInfo
        public UserInfo FindUser(string username)
        {
            if(username == null) throw new ArgumentNullException("username");
            if(username.Length == 0) throw new ArgumentException("Username cannot be empty", "username");

            return Users.FindUser(username);
        }