Beispiel #1
0
        public DictionaryModel GetByID(string code)
        {
            DictionaryModel model = new DictionaryModel();

            code = string.IsNullOrEmpty(code) ? string.Empty : code;
            DataSet ds = new DictionaryDA().Get(code);

            model = ds.ToList <DictionaryModel>().FirstOrDefault();
            return(model);
        }
Beispiel #2
0
        public IList <DictionaryVM> GetList(string pCode, bool?isDisable, string localization)
        {
            IList <DictionaryVM> list = new List <DictionaryVM>();

            pCode = string.IsNullOrEmpty(pCode) ? string.Empty : pCode;
            DataSet ds = new DictionaryDA().GetByParent(pCode, isDisable, localization);

            list = ds.ToList <DictionaryVM>();

            return(list);
        }
Beispiel #3
0
        public IList <DictionaryModel> GetList(string pCode)
        {
            IList <DictionaryModel> list = new List <DictionaryModel>();

            pCode = string.IsNullOrEmpty(pCode) ? string.Empty : pCode;
            DataSet ds = new DictionaryDA().GetByParent(pCode);

            list = ds.ToList <DictionaryModel>();

            return(list);
        }