Ejemplo n.º 1
0
        public string GetData(string content)
        {
            try
            {
                var data = new GetDataModel();// 获取数据
                Para_ConferenceRoom sourceList = new Para_ConferenceRoom();
                data.sourceList = Utility.Database.QueryList(sourceList);

                // 初始化一空行
                data.sourceListEdit = new Para_ConferenceRoom();
                return Utility.JsonResult(true, null, data);
            }
            catch (Exception ex)
            {
                ComBase.Logger(ex);
                return Utility.JsonResult(false, ex.Message);
            }
        }
Ejemplo n.º 2
0
        public string GetData(string content)
        {
            try
            {
                var data = new GetDataModel();// 获取数据
                Para_ConferenceRoom sourceList = new Para_ConferenceRoom();
                data.sourceList = Utility.Database.QueryList(sourceList);

                // 初始化一空行
                data.sourceListEdit = new Para_ConferenceRoom();
                return JsonConvert.SerializeObject( data);
            }
            catch (Exception ex)
            {
                ComBase.Logger(ex);
                return Utility.JsonMsg(false, ex.Message);
            }
        }