예제 #1
0
        public async Task <IActionResult> Get()
        {
            IEnumerable <IMDBScraper.Shared.DTO.Actor> actors = new List <IMDBScraper.Shared.DTO.Actor>(0);

            try
            {
                actors = await _actorRepository.GetAllUnHidedAsync().ConfigureAwait(false);
            }
            catch (System.Exception exp)
            {
                _logger.LogError("Error: Get Actors. {@exeption}", exp.Message);
            }

            return(Ok(actors));
        }