ResourceCatalogResult UpdateResourcePath(Guid workspaceID, IResource resource, string oldCategory, string newCategory) { var oldPath = resource.GetSavePath(); var newPath = newCategory; if (!string.IsNullOrEmpty(oldPath)) { newPath = oldPath.Replace(oldCategory, newCategory); } _resourceCatalog.SetResourceFilePath(workspaceID, resource, ref newPath); return(new ResourceCatalogResult { Status = ExecStatus.Success }); }