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