Пример #1
0
        public static List <ParamDtsInfoEntity> GetParamDtsInfo(long paramId)
        {
            List <ParamDtsInfoEntity> paramDts = ApplicationWebHelper.GetParamDtsInfo();

            return((from x in paramDts
                    where x.ID == paramId
                    select x).ToList());
        }
Пример #2
0
        internal static string GetValueByDtsName(long paramId, string dtsName)
        {
            List <ParamDtsInfoEntity> paramDts = ApplicationWebHelper.GetParamDtsInfo();

            return((from x in paramDts
                    where x.ID == paramId &&
                    x.ParamDtsName == dtsName
                    select x.ParamValue).FirstOrDefault());
        }
Пример #3
0
        public static string GetDiscriptionById(long paramId, string value)
        {
            List <ParamDtsInfoEntity> paramDts = ApplicationWebHelper.GetParamDtsInfo();

            return((from x in paramDts
                    where x.ID == paramId &&
                    x.ParamValue == value
                    select x.ParamDtsName).FirstOrDefault());
        }