public JsonResult GetAll()
        {
            List <ShiftDef.DTO> shiftDef = ShiftDef.GetAll();

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

            return(Json(result));
        }
Exemplo n.º 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));
        }