Created
June 2, 2015 09:04
-
-
Save davidknipe/fd6a5d038a05bf07cc9b to your computer and use it in GitHub Desktop.
Removing items from an EPiServer Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Removing items from a project | |
/// </summary> | |
/// <param name="repo">The ProjectRepository instance</param> | |
/// <param name="projectItem">The project item(s) to remove</param> | |
public void RemoveItemsFromProject(ProjectRepository repo, IList<ProjectItem> projectItem) | |
{ | |
repo.DeleteItems(projectItem.Select(x => x.ID)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment