public async Task <ActionResult <RatingViewModel> > GetRatingByIdMovie(int idMovie) { try { var ratingViewModel = await _movieRatingRepository.GetRatingByIdMovie(idMovie); return(Ok(ratingViewModel)); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, new { message = e.Message })); } }