Example #1
0
        public IDictionary <string, string> GetTitleEnglishSelectList()
        {
            _commonDataAccess = new CommonDataAccess(_context);
            var lst = _commonDataAccess.GetActiveTitle();

            return((from x in lst
                    where x.Language.ToUpper(CultureInfo.InvariantCulture) == Constants.TitleLanguage.TitleEn
                    select new
            {
                key = x.TitleId.ToString(),
                value = x.TitleName
            }).ToDictionary(t => t.key, t => t.value));
        }