public async Task <ActionResult <MovieRatingViewModel> > GetMovieRatingByIdUserAndIdMovie(int idUser, int idMovie) { try { var entity = await _movieRatingRepository.GetMovieRatingByIdUserAndIdMovie(idUser, idMovie); return(GetMapperMovieRatingToMovieRatingViewModel(entity)); } catch (MovieRatingNotFoundException e) { return(NotFound(new { message = e.Message })); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, new { message = e.Message })); } }