Beispiel #1
0
        public async Task <IActionResult> List(StoreSearchModel searchModel)
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageUserStore))
            {
                return(AccessDeniedKendoGridJson());
            }

            var model = await _storeModelFactory.PrepareStoreListModel(searchModel);

            return(Json(model));
        }
        public virtual IActionResult List(StoreSearchModel searchModel)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageStores))
            {
                return(AccessDeniedDataTablesJson());
            }

            //prepare model
            var model = _storeModelFactory.PrepareStoreListModel(searchModel);

            return(Json(model));
        }