Exemplo n.º 1
0
 public ActionResult Details(Guid projectId)
 {
     using(var context = new ReadModelContainer())
     {
         var model = context.ProjectModels.Single(p => p.Id == projectId);
         return View(model);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }