public async Task <IActionResult> GetAll() { var result = new ResultDto <List <PaisDto> >(); try { var listDataDto = await _paisService.GetAsync(); result.Data = listDataDto.Items; } catch (Exception ex) { _logger.Error(KOriginApp, ex.Message, ex); result.AddError("OcurriĆ³ un error al obtener el listado de paĆses."); } return(Ok(result)); }