Example #1
0
 public async Task <ApiResult <Page <CmsMessage> > > GetPages(PageParm parm)
 {
     return(await _messageService.GetPagesAsync(parm));
 }
Example #2
0
 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));
 }
Example #3
0
 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)));
 }