public string doLogout(string sSession)
{
SugarCRM.error_value oSugarErrVal = oSugarCRM.logout(sSession);
//Check if error occurred
string sResult = "Logout Successful!";
if (oSugarErrVal.number != "0")
{
sResult = "Logout Error: ";
sResult += oSugarErrVal.number + "\n";
sResult += oSugarErrVal.description;
}
return sResult;
}