public IActionResult Like(int id)
        {
            if (!_blogInfoRepository.PostExists(id))
            {
                return(NotFound());
            }

            _blogInfoRepository.Like(id);

            if (!_blogInfoRepository.Save())
            {
                return(StatusCode(500, "A problem happened while handling your request."));
            }

            _logger.LogInformation($"Blog Post with id {id} was Liked.");
            return(NoContent());
        }