public IActionResult Posts([FromBody] BlogPostVM blogPost)
 {
     try
     {
         BlogPost   blogPosted     = _blogLogic.PostBlog(blogPost.blogPost);
         BlogPostVM blogPostToSend = new BlogPostVM();
         blogPostToSend.blogPost = blogPosted;
         return(Ok(blogPostToSend));
     }
     catch (ArgumentOutOfRangeException ex)
     {
         return(BadRequest(ex.Message));
     }
     catch (Exception)
     {
         throw;
     }
 }