public IActionResult AddReviewToBook(int userId, int bookId, [FromBody] ReviewView review) { if (!ModelState.IsValid) { return(StatusCode(412, "modelstate is not valid")); } try { var newReview = _reviewsService.AddReviewToBook(userId, bookId, review); //FIXME: Create a createdAt path and return that instead. return(StatusCode(201)); } catch (NotFoundException e) { return(NotFound(e.Message)); } }