Hi,
I am getting following error in my code:
error:
'WcfClient.Client.ConsultationClientWCF(ref int)': not all code paths return a value
code:
|
Hi,
I am getting following error in my code:
error:
'WcfClient.Client.ConsultationClientWCF(ref int)': not all code paths return a value
|
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
PJ MartinsPosted May 30, 2010, 2:39 AM
public retour ConsultationClientWCF( ref int ID_CLIENT)
{
Service1 ser = new Service1();
ser.ConsultationClient(ID_CLIENT);
if ( ser.ConsultationClient(ID_CLIENT).Equals(0)){
retour rt = new retour();
rt.succes = 0;
rt.msgsucces = "opération réeussite";
return rt;
}
else if (ser.ConsultationClient(ID_CLIENT).Equals(-1)){
retour ht = new retour();
ht.echec = -1;
ht.msgechec = "Operation échoué";
return ht;
}
return null;
}