public async Task <ApiResult <Page <CmsMessage> > > GetPages(PageParm parm) { return(await _messageService.GetPagesAsync(parm)); }
public async Task <ApiResult <Page <CmsMessage> > > GetPages(PageParm parm) { parm.site = parm.site = SiteTool.CurrentSite?.Guid;; return(await _messageService.GetPagesAsync(parm, m => m.SiteGuid == parm.site, m => m.AddDate, DbOrderEnum.Desc)); }
public async Task <IActionResult> GetPages([FromBody] PageParm parm) { parm.site = parm.site = SiteGuid; return(Ok(await _messageService.GetPagesAsync(parm, m => m.SiteGuid == parm.site, m => m.AddDate, DbOrderEnum.Desc))); }