public static string GetContractModelName(string contractModelCode) { string text2; try { string text = ""; if (contractModelCode == "") { return(text); } EntityData contractModelByCode = ContractDAO.GetContractModelByCode(contractModelCode); if (contractModelByCode.HasRecord()) { text = contractModelByCode.GetString("ContractModelName"); } contractModelByCode.Dispose(); text2 = text; } catch (Exception exception) { throw exception; } return(text2); }