Ejemplo n.º 1
0
        public ActionResult GetAuthorItemsReport([DataSourceRequest] DataSourceRequest request, int?id = null, int?itemId = null, CourseEnums.CourseStatus?status = null)
        {
            var list = _reportServices.GetAuthorItemsList(id, itemId, status).OrderByDescending(x => x.AddOn).ThenBy(x => x.AuthorName).ThenBy(x => x.ItemName).ToArray();

            return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }