public IActionResult CrearHistorialMoneda(TbSeHistorialMoneda viewModel) { try { viewModel.IdUsuario = int.Parse(User.Claims.FirstOrDefault(x => x.Type == ClaimTypes.NameIdentifier)?.Value); var moneda = service.CrearHistorialMonedaSingle(viewModel); return(Ok(moneda)); } catch (Exception ex) { AltivaLog.Log.Insertar(ex.ToString(), "Error"); throw; } }