Example #1
0
 public TableData Load(QueryFlowSchemeListReq request)
 {
     return(new TableData {
         count = Repository.GetCount(null),
         data = Repository.Find(request.page, request.limit, "CreateDate desc")
     });
 }
Example #2
0
        public async Task <TableData> Load(QueryFlowSchemeListReq request)
        {
            var result = new TableData();
            var objs   = GetDataPrivilege("u");

            if (!string.IsNullOrEmpty(request.key))
            {
                objs = objs.Where(u => u.SchemeName.Contains(request.key) || u.Id.Contains(request.key));
            }

            result.data = objs.OrderByDescending(u => u.CreateDate)
                          .Skip((request.page - 1) * request.limit)
                          .Take(request.limit).ToList();
            result.count = objs.Count();
            return(result);
        }
 /// <summary>
 /// 加载列表
 /// </summary>
 public string Load([FromQuery] QueryFlowSchemeListReq request)
 {
     return(JsonHelper.Instance.Serialize(_app.Load(request)));
 }
        /// <summary>
        /// 加载列表
        /// </summary>
        public async Task <string> Load([FromQuery] QueryFlowSchemeListReq request)
        {
            var objs = await _app.Load(request);

            return(JsonHelper.Instance.Serialize(objs));
        }
 public TableData Load([FromQuery] QueryFlowSchemeListReq request)
 {
     return(_app.Load(request));
 }
Example #6
0
 public async Task <TableData> Load([FromQuery] QueryFlowSchemeListReq request)
 {
     return(await _app.Load(request));
 }