Exemplo n.º 1
0
        public ActionResult List([DataSourceRequest] DataSourceRequest request, bool includeResigned, bool includeDeceased)
        {
            if (!request.Sorts.Any())
            {
                request.Sorts.Add(new Kendo.Mvc.SortDescriptor("ChangedWhen", System.ComponentModel.ListSortDirection.Descending));
            }

            var list = memberProvider.List(includeResigned, includeDeceased);

            return(Json(list.ToDataSourceResult(request)));
        }
Exemplo n.º 2
0
        public ActionResult List([DataSourceRequest] DataSourceRequest request)
        {
            var result = memberProvider.List();

            return(Json(result.ToDataSourceResult(request)));
        }