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