public ActionResult DeleteSelected(ICollection <int> selectedIds)
 {
     if (!_permissionService.Authorize(StandardPermissionProvider.ManageResource))
     {
         return(AccessDeniedView());
     }
     if (selectedIds != null)
     {
         var resources = _resourcesService.GetEntityByIds(selectedIds.ToArray());
         foreach (var resource in resources)
         {
             _resourcesService.DeleteResource(resource);//删除本地
         }
     }
     return(Json(new { Result = true }));
 }