コード例 #1
0
        public virtual async Task <IActionResult> List(AffiliateSearchModel searchModel)
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageAffiliates))
            {
                return(await AccessDeniedDataTablesJson());
            }

            //prepare model
            var model = await _affiliateModelFactory.PrepareAffiliateListModelAsync(searchModel);

            return(Json(model));
        }