コード例 #1
0
        public async Task <IActionResult> GetPageAsync(LogQueryModel qModel)
        {
            var result = await _logSvc.GetPageDataAsync(qModel);

            var json = JsonConvert.SerializeObject(result);

            return(Json(result));
        }
コード例 #2
0
        public async Task Test()
        {
            var param = new LogQueryModel()
            {
                OrderByColumn = "Id",
                IsDesc        = false
            };
            var result = await _logSvc.GetPageDataAsync(param);

            Assert.LessOrEqual(result.Data.Count, 20);
        }