public ActionResult BlogEntryList(int?year, int pageNumber = 1)
        {
            var allBlogEntries = _blogRepository.GetAllBlogEntries();

            if (year.HasValue)
            {
                allBlogEntries = allBlogEntries.Where(x => x.Date.Year == year.Value).ToArray();
            }

            var blogEntries = allBlogEntries
                              .OrderByDescending(x => x.Date)
                              .Skip(postsPerPage * (pageNumber - 1))
                              .Take(postsPerPage)
                              .ToArray();

            return(View(new BlogListModel()
            {
                PagingModel = new PagingModel()
                {
                    Controller = "Blog",
                    Action = "BlogEntryList",
                    Identifier = ViewData[KeyConstants.Identifier]?.ToString(),
                    CurrentPage = pageNumber,
                    EntriesTotalCount = allBlogEntries.Count(),
                    EntriesPerPage = postsPerPage,
                    RouteValues = new RouteValueDictionary(new { year })
                },
                Entries = blogEntries,
            }));
        }