public async Task <IActionResult> GetPageAsync(LogQueryModel qModel) { var result = await _logSvc.GetPageDataAsync(qModel); var json = JsonConvert.SerializeObject(result); return(Json(result)); }
public async Task Test() { var param = new LogQueryModel() { OrderByColumn = "Id", IsDesc = false }; var result = await _logSvc.GetPageDataAsync(param); Assert.LessOrEqual(result.Data.Count, 20); }