Ejemplo n.º 1
0
        public async Task <IActionResult> List()
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageUserStore))
            {
                return(AccessDeniedView());
            }

            var model = await _storeModelFactory.PrepareStoreSearchModel(new StoreSearchModel());

            return(View(model));
        }
        public virtual IActionResult List()
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageStores))
            {
                return(AccessDeniedView());
            }

            //prepare model
            var model = _storeModelFactory.PrepareStoreSearchModel(new StoreSearchModel());

            return(View(model));
        }