Exemplo n.º 1
0
        private object GetDutyList()
        {
            Sys_DutyBLL dutyApp = new Sys_DutyBLL();
            var         data    = dutyApp.GetList();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            foreach (Sys_Role item in data)
            {
                var fieldItem = new
                {
                    encode   = item.F_EnCode,
                    fullname = item.F_FullName
                };
                dictionary.Add(item.F_Id, fieldItem);
            }
            return(dictionary);
        }