/// <summary>
        /// Logs out the current user from the API
        /// </summary>
        /// <returns>Success of operation</returns>
        public async Task <bool> Logout()
        {
            return(await Task.Run(() =>
            {
                var result = _client.logout(new LogoutRequest {
                    WebLogin = _config.CustomerId, UserContext = _config.Context
                });

                if (result.ErrorCode.Equals("0"))
                {
                    _config.Context.securityKey = "";
                    return true;
                }
                else
                {
                    return false;
                }
            }));
        }