public ActionResult Index() { using (var session = MvcApplication.DocumentStore.OpenSession()) { return View(session.Query<Child>()); } }