Esempio n. 1
0
        public static EasyUI <T> Easy(IEnumerable <T> entity, int totalSize)
        {
            EasyUI <T> easyUI = new EasyUI <T>();

            easyUI.total = totalSize;
            easyUI.rows  = entity;

            return(easyUI);
        }
Esempio n. 2
0
        public static JsonResult ReturnEasyUI(IEnumerable <T> entity, int totalSize)
        {
            EasyUI <T> easyUI = new EasyUI <T>();

            easyUI.total = totalSize;
            easyUI.rows  = entity;

            var jsonResult = new JsonResult();

            jsonResult.JsonRequestBehavior = JsonRequestBehavior.DenyGet;
            jsonResult.Data = easyUI;

            return(jsonResult);
        }