示例#1
0
        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()));
        }
示例#2
0
 protected override List <object> GetData()
 {
     return(EnumerableExtensions.ToList <object>(_service.GetDataRole()));
 }