A command resource used for logging in.
        public bool Login(string userName, string password)
        {
            var loginCommand = new LoginCommand()
            {
                Username = userName,
                Password = password
            };

            try
            {
                _repository.Users.SignIn(loginCommand);
            }
            catch
            {
                return false;
            }

            return true;
        }
        public bool Login(string userName, string password, out UserResource user)
        {
            var loginCommand = new LoginCommand()
            {
                Username = userName,
                Password = password
            };

            try
            {
                _repository.Users.SignIn(loginCommand);
            }
            catch (OctopusValidationException)
            {
                user = null;
                return false;
            }
            
            user = _repository.Users.GetCurrent();
            return true;
        }