Beispiel #1
0
        public IActionResult AddPost(PostDto postDto)
        {
            var result = _postLogic.Add(postDto);

            return(Ok());
        }
Beispiel #2
0
        // POST api/<controller>

        public void Post([FromBody] PostModel Post)
        {
            PostLogic.Add(PostControllerMapper.Map <PostModel, PostDTO>(Post));
        }