// PUT api/<controller>/5 public void Put(int PostId, [FromBody] CommentsModel Comments) { PostLogic.AddComment(PostId, PostControllerMapper.Map <CommentsModel, CommentsDTO>(Comments)); }
// PUT api/<controller>/5 public void Put(int PostId, [FromBody] CommentsModel Comments) { PostLogic.AddComment(PostId, PostControllerMapper.Map <CommentsModel, CommentsDTO>(Comments)); }