public async Task <IActionResult> AddComment(Guid ratingId, [FromBody] AddCommentRequest addCommentRequest) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _ratingService.AddComment(ratingId, addCommentRequest.Comment); if (result.ErrorCodes.HasFlag(ErrorCodes.RatingNotFound)) { return(NotFound()); } return(Ok()); }