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))); }
public ActionResult List([DataSourceRequest] DataSourceRequest request) { var result = memberProvider.List(); return(Json(result.ToDataSourceResult(request))); }