Raysefo

Raysefo

  • 1.1k
  • 284
  • 150.2k

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)