public IActionResult Detail(int id, int page = 1)
        {
            var post = this.unitOfWork.PostRepository.GetById(id);

            if (post == null)
            {
                return(NotFound());
            }

            var model = PostViewModel.CreateFromEntity(post, page, 10);

            model.Comments.Action = nameof(Detail);

            return(View(model));
        }