Ejemplo n.º 1
0
        public ActionResult GetAdminForemen(string sidx, string sord, int page, int rows)
        {
            uls_dbDataContext db = new uls_dbDataContext();

            var forem = db.GetGridSvcForemen();

            var dataJson = new
            {
                total    =
                    page = 1,
                records  = 10000,
                rows     = (from f in forem
                            select new
                {
                    id = f.svc_foreman_id,
                    cell = new string[] {
                        f.svc_foreman_nm
                    }
                }).ToArray()
            };

            return(Json(dataJson, JsonRequestBehavior.AllowGet));
        }