public void Save() { preSaveValidations(); if(continueSave==false) //This value will be set in call back method validation service call return; //Here goes actual service call to save the modifications } public void preSaveValidations() { _dataContext.CallValidate(callVaildate_CallBack, null); } public void callValidate_CallBack(InvokeOperation<\IEnumerable<\CallValidate_Result>> e) { if(e.HasError==false) { if(e.Value!=null) { continueSave=true; // This is the parameter used to continue save method } } }
preSaveValidations()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)