コード例 #1
0
        public async Task <ActionResult> Post(ReviewUpsertDto reviewUpsertDto)
        {
            var userId        = Convert.ToInt32(HttpContext.User.Claims.ToList()[0].Value);
            var reviewReadDto = await _reviewService.CreateReviewReadDto(reviewUpsertDto, userId);

            _logger.LogInformation(LogMessages.EntityCreated);
            return(CreatedAtAction(nameof(Get), new { reviewReadDto.Id }, reviewReadDto));
        }