Example #1
0
        public IActionResult GetMovieById(LanguageEnum langCode, int id)
        {
            var movie = _service.GetMovies(langCode.GetDescription(), id).FirstOrDefault();

            return(Ok(movie));
        }
Example #2
0
        public IActionResult GetAllMovies(LanguageEnum langCode)
        {
            var movies = _service.GetMovies(langCode.GetDescription());

            return(Ok(movies));
        }