public JsonResult GetPages(PageParm parm) { parm.site = SiteTool.CurrentSite?.Guid; var res = _downloadService.GetList(parm); return(Json(new { code = 0, msg = "success", count = res.TotalItems, data = res.Items })); }
public IActionResult GetPages([FromQuery] PageParm parm) { parm.site = SiteGuid; var res = _downloadService.GetList(parm); return(Ok(new { code = 0, msg = "success", count = res.TotalItems, data = res.Items })); }
public JsonResult GetPages(PageParm parm) { var res = _downloadService.GetList(parm); return(Json(new { code = 0, msg = "success", count = res.TotalItems, data = res.Items })); }