public IActionResult AddPost(PostDto postDto) { var result = _postLogic.Add(postDto); return(Ok()); }
// POST api/<controller> public void Post([FromBody] PostModel Post) { PostLogic.Add(PostControllerMapper.Map <PostModel, PostDTO>(Post)); }