protected override void LoadWidgets(IDocumentSession session) { session.Load <BlogConfig>("NSemble/Configs/" + "areaName");// TODO: Constants, admin create // TODO use area config doc to load these var widgets = new List <Widget>(); var widget = new RecentPostsWidget("RecentPosts", "Region"); widget.Content = session.Query <BlogPost>().Where(x => x.CurrentState == BlogPost.State.Public).OrderByDescending(x => x.PublishedAt).Take(10).ToArray(); widgets.Add(widget); Model.Widgets = widgets; }