public async Task <IActionResult> GetDirectors() { try { _logger.LogInfo("Get all directors"); var directors = await _directorRepository.FindAll(); var response = _mapper.Map <IList <DirectorDTO> >(directors); return(Ok(response)); } catch (Exception ex) { return(InternalError($"Something went wrong: {ex.Message}")); } }