public virtual async Task <IActionResult> Create() { if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageAffiliates)) { return(AccessDeniedView()); } //prepare model var model = await _affiliateModelFactory.PrepareAffiliateModelAsync(new AffiliateModel(), null); return(View(model)); }