public async Task <IActionResult> AddProductComment([FromBody] AddProductCommentDTO comment) { if (!User.Identity.IsAuthenticated) { return(JsonResponseStatus.Error(new { message = "لطفا ابتدا وارد سایت شوید" })); } if (!await _productService.IsExistProductById(comment.ProductId)) { return(JsonResponseStatus.NotFound()); } var userId = User.GetUserId(); var res = await _productService.AddProductComment(comment, userId); return(JsonResponseStatus.Success(res)); }