private void InsererCompteClient(List <CsLclient> leFrais) { try { RecouvrementServiceClient clients = new RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement")); clients.InsererFraisPoseAsync(leFrais); clients.InsererFraisPoseCompleted += (es, result) => { try { if (result.Cancelled || result.Error != null) { string error = result.Error.Message; Message.ShowError("Erreur à l'exécution du service", "InsererCompteClient"); return; } if (result.Result == null) { Message.ShowInformation("Donnée non trouvé ", "InsererCompteClient"); return; } if (string.IsNullOrEmpty(result.Result)) { Message.ShowInformation("Mise a jour effectuée", "Recouvrement"); } else { Message.ShowInformation(result.Result, "Recouvrement"); } } catch (Exception ex) { Message.ShowError(ex, Galatee.Silverlight.Resources.Langue.errorTitle); } }; } catch (Exception ex) { throw ex; } }