public IActionResult AddNewPost([FromBody] Post post)
 {
     PostRepository.AddNewPost(post);
     return(Json(post));
 }
 public IActionResult AddNewContent([FromBody] Content content)
 {
     postRepository.AddNewPost(content);
     return(Json(content));
 }
Beispiel #3
0
        public void AddNewPost(Post newPost)

        {
            _postRepo.AddNewPost(newPost);
        }