public ActionResult GetDataRoles(StoreRequestParameters parameters = null) { var data = EnumerableExtensions.ToList <object>(_service.GetDataRole()); if (parameters == null) { return(Json(data, JsonRequestBehavior.AllowGet)); } return(this.Store(FilterSortAndPaging(data, parameters), data.Count())); }
protected override List <object> GetData() { return(EnumerableExtensions.ToList <object>(_service.GetDataRole())); }