Implémentation de l'api dans la stratégie de persistance
continuous-integration/drone/push Build is failing Details

pull/138/head
Hugo LIVET 2 years ago
parent 0f3872e8f2
commit 34ca7ca60f

@ -298,9 +298,9 @@ namespace Data
}
public static async Task<bool> DeleteOperationInscritAsync(string nomCompte, string nomOpe)
public static async Task<bool> DeleteOperationInscritAsync(string idCompte, string nomOpe)
{
var dataBody = new Dictionary<string, string> { { "compte", nomCompte }, { "nom", nomOpe } };
var dataBody = new Dictionary<string, string> { { "compte", idCompte }, { "nom", nomOpe } };
var reponse =
cli.SendAsync(

@ -82,15 +82,15 @@ namespace Data
//actions sur les Opérations
public bool AjouterOperation(Compte compte, Operation operation)
{
throw new NotImplementedException();
return ClientAPI.PostAddOperationInscritAsync(compte,operation).GetAwaiter().GetResult();
}
public bool SupprimerOperation(Compte compte, Operation operation)
{
throw new NotImplementedException();
return ClientAPI.DeleteOperationInscritAsync(compte.Identifiant, operation.IntituleOperation).GetAwaiter().GetResult();
}
public IList<Compte> RecupererOperation(Compte compte)
{
throw new NotImplementedException();
return ClientAPI.GetCompteAsync(compte.Identifiant).GetAwaiter().GetResult();
}

Loading…
Cancel
Save