可能かどうかはわかりませんが、これを実行したい: 応答を返したいが、関数を実行する前に、メソッドの応答を待たずに...
int Validate(saveobj obje)
{
// here I do my validations
return 0;
}
public string sendingObj(saveobj obje)
{
//here I call my validation function
int result = Validate(obje);
if(result != 0)
// here I want to return ALLAYS something, because my web site cant wait all the process
return result;
}
// here, no matter which response I give on my validate method I want to do this
// Rest OF MY SENDING CODE !