예제 #1
0
        public JsonResult GetSome()
        {
            int start = int.Parse(this.Request["start"]);
            int limit = int.Parse(this.Request["limit"]);

            int shiftDefCount = ShiftDef.GetAllCount();
            List <ShiftDef.DTO> shiftDefSome = ShiftDef.GetSome(start, limit);

            var result = new { totalProperty = shiftDefCount, root = shiftDefSome };

            return(Json(result));
        }
예제 #2
0
        public JsonResult GetSomeShiftDefRef()
        {
            int start = int.Parse(HttpContext.Request["start"]);
            int limit = int.Parse(HttpContext.Request["limit"]);

            List <ShiftDef.DTO> shiftDef     = ShiftDef.GetAll();
            List <ShiftDef.DTO> shiftDefSome = ShiftDef.GetSome(start, limit);

            var result = new { totalProperty = shiftDef.Count, root = shiftDefSome };

            return(Json(result));
        }