Example #1
0
        public List <TranslationVal> FindTranslation(TranslationValCriteria criteria = null)
        {
            List <TranslationVal> translationList = null;
            string cacheKey = string.Format("TranslationValCriteria_null");

            if (!TryGetCacheData(cacheKey, out translationList, _cacheName))
            {
                translationList = GetTranslationManager().FindTranslation(criteria);
                SetCacheData(_cacheName, cacheKey, translationList);
            }
            return(translationList);
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public List <TranslationVal> Find(TranslationValCriteria translationValCriteria = null)
        {
            List <TranslationVal> resultList = null;
            var rowList = _dbContext.Table <TranslationRow> ();

            CriteriaTransformer.CompleteQuery(ref rowList, translationValCriteria);

            if (rowList != null && rowList.Count() > 0)
            {
                resultList = new List <TranslationVal>();
                foreach (var row in rowList)
                {
                    resultList.Add(TranslationTransformer.ToBean(row));
                }
            }
            return(resultList);
        }
 public List <TranslationVal> FindTranslation(TranslationValCriteria translationValCriteria = null)
 {
     return(_module.Find(translationValCriteria));
 }