Beispiel #1
0
        public async Task <ActionResult <SearchMovies> > FetchMovieAsync(string Title)
        {
            if (!string.IsNullOrEmpty(Title))
            {
                var result = await _createService.FetchMovieAsync(Title);

                if (result == null)
                {
                    return(BadRequest());
                }
                else
                {
                    return(Ok(result));
                }
            }
            else
            {
                return(NotFound());
            }
        }