public virtual async Task <IActionResult> Warehouses(WarehouseSearchModel searchModel) { if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageShippingSettings)) { return(await AccessDeniedDataTablesJson()); } //prepare model var model = await _shippingModelFactory.PrepareWarehouseListModelAsync(searchModel); return(Json(model)); }