Beispiel #1
0
 public async Task <IActionResult> GetClassPages()
 {
     return(Ok(await _classService.GetListAsync(m => m.SiteGuid == SiteGuid, m => m.Guid, DbOrderEnum.Asc)));
 }
Beispiel #2
0
 public void OnGet(string guid)
 {
     Class = _classService.GetModelAsync(m => m.Guid == guid).Result.data;
     List  = _classService.GetListAsync().Result.data;
 }
Beispiel #3
0
 public async Task <ApiResult <List <CmsAdvClass> > > GetClassPages()
 {
     return(await _classService.GetListAsync());
 }
Beispiel #4
0
        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));
        }
Beispiel #5
0
        public async Task <IActionResult> GetClassPages()
        {
            var siteGuid = SiteTool.CurrentSite?.Guid;

            return(Ok(await _classService.GetListAsync(m => m.SiteGuid == siteGuid, m => m.Guid, DbOrderEnum.Asc)));
        }