public async Task <IActionResult> PutReview(int id, ReviewDTO review) { if (id != review.ID) { return(BadRequest()); } try { await _reviewRepository.Update(id, review); } catch (DbUpdateConcurrencyException) { if (!await _reviewRepository.EntityExists(id)) { return(NotFound()); } throw; } return(NoContent()); }