public static List <CodeHelper> GetCodeHelpers() { List <CodeHelper> list = new List <CodeHelper>(); foreach (DataRow row in ((CodeHelperCache) new CodeHelperCache().GetData()).dtCodeHelper.Rows) { CodeHelper codeHelper = new CodeHelper(); CodeHelper @object = CodeHelperUtils.GetObject(row); list.Add(@object); } return(list); }
public static CodeHelper GetCodeHelper(string codeId) { CodeHelper codeHelper = null; CodeHelperCache codeHelperCache = (CodeHelperCache) new CodeHelperCache().GetData(); int index = codeHelperCache.dvCodeHelperBy_CodeId.Find(codeId); bool flag = index >= 0; if (flag) { CodeHelper codeHelper2 = new CodeHelper(); codeHelper = CodeHelperUtils.GetObject(codeHelperCache.dvCodeHelperBy_CodeId[index].Row); } return(codeHelper); }