public ActionResult Details(Guid projectId) { using(var context = new ReadModelContainer()) { var model = context.ProjectModels.Single(p => p.Id == projectId); return View(model); } }
public ActionResult ScrumBoard(Guid sprintId) { using(var context = new ReadModelContainer()) { context.ContextOptions.LazyLoadingEnabled = false; context.ContextOptions.ProxyCreationEnabled = false; var sprint = context.Sprints.Include("Stages").Include("Stories").Include("Stories.Tasks").Single ( s => s.Id == sprintId ); return View(sprint); } }