//search eklenecek

        public IActionResult NewProductComment(int productId)
        {
            SaveProductCommentDto saveProductCommentResource = new SaveProductCommentDto();

            saveProductCommentResource.ProductId = productId;
            return(View(saveProductCommentResource));
        }
        public async Task <IActionResult> NewProductComment(SaveProductCommentDto saveProductCommentResource, int productId)
        {
            var productComment = _mapper.Map <SaveProductCommentDto, ProductComment>(saveProductCommentResource);
            await _productService.AddProductComment(productComment, productId);

            return(RedirectToAction("ProductDetail", new { Id = productId })); //redirect product id
        }