Ejemplo n.º 1
0
        //[SupportFilter]
        public HttpResponseMessage GetSysUrlAll()
        {
            string result = string.Empty;

            try
            {
                DataTable dt = rule.GetSysUrl();
                result = rule.JsonStr("ok", "", dt);
            }
            catch (Exception e)
            {
                result = rule.JsonStr("error", e.Message, "");
            }
            return(new HttpResponseMessage {
                Content = new StringContent(result, System.Text.Encoding.UTF8, "application/json")
            });
        }