You need to have a
return
value for the
else
part of the statement.
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;
}
else
{
return null;
}