示例#1
0
        public IDictionary <string, string> GetRelationshipSelectList()
        {
            _commonDataAccess = new CommonDataAccess(_context);
            var lst = _commonDataAccess.GetActiveRelationship();

            return((from x in lst
                    select new
            {
                key = x.RelationshipId.ToString(CultureInfo.InvariantCulture),
                value = x.RelationshipName
            }).ToDictionary(t => t.key, t => t.value));
        }