public async Task <IActionResult> Index(LogSearchDto model)
        {
            if (model.PageIndex == 0)
            {
                model.PageIndex = 1;
            }
            if (model.PageSize == 0)
            {
                model.PageSize = 10;
            }
            var res = await _logService.GetPageAsync(model);

            ViewBag.LogSearch = model;
            return(View(res));
        }
 public async Task <Page <SysLog> > GetPageAsync([FromQuery] LogSearchDto model)
 {
     return(await logService.GetPageAsync(model));
 }