Esempio n. 1
0
        public async Task <ActionResult <Task <IEnumerable <Movie> > > > GetMoviesAsync()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            else
            {
                IEnumerable <Movie> response = await _movieServices.Get();

                _logger.LogInformation("MovieController: GetMoviesAsync", " response received..");
                return(Ok(Json(response)));
            }
        }