Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using Typed GlassControllers to provide DataSource
public class MyTypedController : GlassController<IContentItem>
{
public ActionResult DisplayControl()
{
return View(DataSource); // returns the view using the DataSource as the model of type IContentItem
}
}
public interface IContentItem
{
Guid Id { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.