public async Task <IActionResult> Post([FromBody] PaisDto valueDto) { var result = new ResultDto <PaisDto>(); try { result.Data = await _paisService.CreateAsync(valueDto); } catch (Exception ex) { _logger.Error(KOriginApp, ex.Message, ex); result.AddError("OcurriĆ³ un error al intentar agregar el registro."); } return(Ok(result)); }