public Result <IList <BlogPostWithAuthor> > GetAllWithUserNick(string token)
        {
            var user =
                _tokenValidator.ValidateToken(token);

            if (user == null)
            {
                return(Result <IList <BlogPostWithAuthor> > .Unauthorized);
            }

            return(new Result <IList <BlogPostWithAuthor> >(_blogPostRepository.GetAllWithUserNick()));
        }
        //
        // GET: /BlogPosts/

        public ActionResult Index()
        {
            IList <BlogPostWithAuthor> blogPostWithAuthors = _blogPostRepository.GetAllWithUserNick();

            return(View(blogPostWithAuthors));
        }