Esempio n. 1
0
        public IHttpActionResult GetPages(string storeId, [FromUri] GetPagesCriteria criteria)
        {
            base.CheckCurrentUserHasPermissionForObjects(ContentPredefinedPermissions.Read, new ContentScopeObject {
                StoreId = storeId
            });
            var items = _pagesService.GetPages(storeId, criteria.ToCoreModel()).Select(s => s.ToWebModel());

            return(Ok(items));
        }
Esempio n. 2
0
        public IHttpActionResult GetPages(string storeId, [FromUri] GetPagesCriteria criteria)
        {
            var items = _pagesService.GetPages(storeId, criteria.ToCoreModel()).Select(s => s.ToWebModel());

            return(Ok(items));
        }