Exemplo n.º 1
0
        public async Task <IActionResult> PostQuestionPost(QuestionPostDto questionPost)
        {
            var userId = GetUserId();
            var post   = await _postService.AddQuestionPost(questionPost, userId);

            await _unitOfWork.Commit();

            var questionPostDetail = await _postService.MapPostToQuestionPostDetail(post);

            return(Ok(questionPostDetail));
        }