コード例 #1
0
        public async Task <IActionResult> UserStoreList(UserStoreSearchModel searchModel)
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageUserStore))
            {
                return(AccessDeniedKendoGridJson());
            }

            var store = _storeService.GetStoreById(searchModel.StoreId) ??
                        throw new ArgumentException("No store found with the specified id");

            var model = await _storeModelFactory.PrepareUserStoreListModel(searchModel, store);

            return(Json(model));
        }