Beispiel #1
0
        public string GetMessageType()
        {
            var dict   = ObjectUtil.GetEnumFields(typeof(MessageType));
            var result = new List <Object>();

            dict.ToList().ForEach(x =>
            {
                result.Add(new { Name = x.Value, Value = x.Key });
            });
            return(ReturnJson(result));
        }