Raysefo

Raysefo

  • 1.5k
  • 284
  • 151k

How to return in a method before transaction?

Mar 13 2012 10:13 AM

Hi,

I have a method which returns 1 or 0 after some transactions. I wonder if there is a way to return 1 or 0 before the transactions? The reason is because there is a mechanism that waits for this return value and it is more important than the transaction itself.


This is my sample method:


public string retDrawProgram(System.Data.DataSet dsDrawProgram, string sDrawNumber, string sDataRevision)

{


        //Here is my transactions

return 1;


}



Answers (4)