Skip to content

Instantly share code, notes, and snippets.

@marcduiker
Created November 17, 2014 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcduiker/2cc9c3add8ef2c0180dd to your computer and use it in GitHub Desktop.
Save marcduiker/2cc9c3add8ef2c0180dd to your computer and use it in GitHub Desktop.
using Sitecore.Data;
using Sitecore.Data.Items;
using SitecorePlayground.Common.Interfaces.Providers;
namespace SitecorePlayground.Common.Providers
{
public class ItemProvider : IItemProvider
{
public Item GetItem(ID itemId)
{
return Sitecore.Context.Database.GetItem(itemId);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment