Esempio n. 1
0
        public void ProcessRequest(HttpContext context)
        {
            DataModel dm = new DataModel();
            List<LxyUser> lts = dm.GetUsers(); ;
            LxyUserWithTotal ltr = new LxyUserWithTotal();
            ltr.total = lts.Count;
            ltr.rows = lts;

            context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8");
            context.Response.Write(JsonMapper.ToJson(ltr));
            context.Response.End();
        }