public string readFromDataBase() { string returnValue = null; returnValue = Database.readFromDataBase("SELECT * FROM CUSTOMER"); return(returnValue); }
public string getLicenseId(license.License lic) { string strLicenseId; string strSqlStatement = "select id from License " + "WHERE productid = '" + lic.s_strProductID + "';"; try { strLicenseId = Database.readFromDataBase(strSqlStatement); } catch (System.Exception e) { data.Log.debug("Some problems in attachLicense" + e.Message); return("InvalidNumber"); } return(strLicenseId); }