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)); }