Example #1
0
 public object Get([System.Web.Http.ModelBinding.ModelBinder] GetPagedListParams parms)
 {
     return(new
     {
         Students = DpManagementService.GetGraduateStudentsForUser(WebSecurity.CurrentUserId, parms),
         PercentageGraphs = PercentageService.GetPercentageGraphsForLecturerAll(WebSecurity.CurrentUserId, parms)
     });
 }
        public object Get([System.Web.Http.ModelBinding.ModelBinder] GetPagedListParams parms)
        {
            var subjectId = 0;

            if (parms.Filters.ContainsKey("subjectId"))
            {
                subjectId = int.Parse(parms.Filters["subjectId"]);
            }
            return(new
            {
                Students = CpManagementService.GetGraduateStudentsForUser(WebSecurity.CurrentUserId, subjectId, parms),
                PercentageGraphs = PercentageService.GetPercentageGraphsForLecturerAll(WebSecurity.CurrentUserId, parms)
            });
        }