public virtual async Task <IActionResult> Warehouses() { if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageShippingSettings)) { return(AccessDeniedView()); } //prepare model var model = await _shippingModelFactory.PrepareWarehouseSearchModelAsync(new WarehouseSearchModel()); return(View(model)); }