Skip to content

Instantly share code, notes, and snippets.

@islaytitans

islaytitans/SitecoreItemController.cs Secret

Last active Aug 29, 2015
Embed
What would you like to do?
Sitecore Hackathon SitecoreItemController
namespace DevToolKit.Controllers
{
[ValidateAntiForgeryToken]
[ServicesController]
public class SitecoreItemController : EntityService<ItemModel>
{
public SitecoreItemController(IRepository<ItemModel> repository)
: base(repository)
{
}
public SitecoreItemController()
: this(new SitecoreItemRepository())
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment