using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMISOnline.Entities; using EMISOnline.ViewModel; using EMISOnline.ViewModel.Cache; namespace EMISOnline.Utility { public class DictionaryHelper { public static IEnumerable GetDictionaryValue(DictionaryItem dictionaryItem) { return GetDictionaryValue(dictionaryItem.ToString()); } public static Sys_DictionaryItem GetSingleDictionary(int dictionaryValue, string dictionaryCode) { return GetDictionaryValue(dictionaryCode).FirstOrDefault(x => x.Value == dictionaryValue); } public static IEnumerable GetDictionaryValue(string dictionaryCode) { return IdNameExt.GetDictionaryItem(dictionaryCode); } } }