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)); }
public string GetList([FromQuery] QueryAppListReq request) { return(JsonHelper.Instance.Serialize(_app.GetList(request))); }
public List <Application> GetList(QueryAppListReq request) { var applications = UnitWork.Find <Application>(null); return(applications.ToList()); }
public async Task <List <Application> > GetList(QueryAppListReq request) { var applications = UnitWork.Find <Application>(null); return(await applications.ToListAsync()); }