public async Task <ActionResult> createReview(ReviewCreateDto reviewCreateDto) { var UserId = User.FindFirst(ClaimTypes.NameIdentifier).Value; var Review = _mapper.Map <Review>(reviewCreateDto); Review.Name = await _clientservice.AddUserName(UserId); _reviewRepo.CreateProductReview(UserId, Review); _reviewRepo.saveChanges(); return(Ok()); }