public TableData Load([FromQuery] QueryAppListReq request)
        {
            var applications = _app.GetList(request);

            return(new TableData {
                data = applications, count = applications.Count
            });
        }
        public async Task <string> GetList([FromQuery] QueryAppListReq request)
        {
            var resp = new Response <List <Application> >();

            try
            {
                resp.Result = await _app.GetList(request);
            }
            catch (Exception e)
            {
                resp.Code    = 500;
                resp.Message = e.Message;
            }
            return(JsonHelper.Instance.Serialize(resp));
        }
Ejemplo n.º 3
0
 public string GetList([FromQuery] QueryAppListReq request)
 {
     return(JsonHelper.Instance.Serialize(_app.GetList(request)));
 }
Ejemplo n.º 4
0
        public List <Application> GetList(QueryAppListReq request)
        {
            var applications = UnitWork.Find <Application>(null);

            return(applications.ToList());
        }
Ejemplo n.º 5
0
        public async Task <List <Application> > GetList(QueryAppListReq request)
        {
            var applications = UnitWork.Find <Application>(null);

            return(await applications.ToListAsync());
        }