public ActionResult Fetch(EntryDashboardQueryModel queryModel)
        {
            var entryEditModels = this.session.Query<Entry>()
                .Where(e => !e.Deleted)
                .OrderByDescending(e => e.PublishedAtUtc)
                .Skip((queryModel.PageNumber - 1) * queryModel.PageSize)
                .Take(queryModel.PageSize)
                .ToList()
                .Select(this.CreateEntryEditModel);

            return this.Json(entryEditModels, JsonRequestBehavior.AllowGet);
        }
        public ActionResult Dashboard()
        {
            RavenQueryStatistics stats;

            var results = this.session.Query<Entry>()
                .Statistics(out stats)
                .ToArray();

            var dashboardQueryModel = new EntryDashboardQueryModel()
            {
                PageNumber = 1,
                PageSize = EntriesPerPage,
                TotalItems = stats.TotalResults
            };

            return this.View(dashboardQueryModel);
        }