Last active
July 2, 2018 09:51
-
-
Save mikeedwards83/ccbbb761835d83dd78d7b910a9897e26 to your computer and use it in GitHub Desktop.
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
public class CodeQuiz1 | |
{ | |
public virtual IEnumerable<CodeQuiz1> Children { get; set; } | |
public virtual string Title { get; set; } | |
public virtual ParentModel Parent { get; set; } | |
public string Name { get; } | |
} | |
public class ParentModel { } | |
//code from controller | |
public ActionResult Index() | |
{ | |
var mvcContext = new WebFormsContext(); | |
var model = mvcContext.GetContextItem<CodeQuiz1>(x => x.CacheEnabled()); | |
return View(model); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment