public async Task <IActionResult> GetClassPages() { return(Ok(await _classService.GetListAsync(m => m.SiteGuid == SiteGuid, m => m.Guid, DbOrderEnum.Asc))); }
public void OnGet(string guid) { Class = _classService.GetModelAsync(m => m.Guid == guid).Result.data; List = _classService.GetListAsync().Result.data; }
public async Task <ApiResult <List <CmsAdvClass> > > GetClassPages() { return(await _classService.GetListAsync()); }
public async Task <ApiResult <List <CmsAdvClass> > > GetClassPages() { var siteGuid = SiteTool.CurrentSite?.Guid;; return(await _classService.GetListAsync(m => m.SiteGuid == siteGuid, m => m.Guid, DbOrderEnum.Asc)); }
public async Task <IActionResult> GetClassPages() { var siteGuid = SiteTool.CurrentSite?.Guid; return(Ok(await _classService.GetListAsync(m => m.SiteGuid == siteGuid, m => m.Guid, DbOrderEnum.Asc))); }