Beispiel #1
0
        public void Registercustomer()
        {
            Transactionservices transactions = new Transactionservices();
            string query1 = "insert into bank_master values('jass','akash123',10000)";
            string query2 = "insert into bank_transaction values('jass', 10000, 'D', GETDATE())";

            transactions.Do_transactions(query1, query2);
        }
 public void Transaction(string task, string name, string amount)
 {
     if (task.Equals("deposite"))
     {
         Transactionservices transactions = new Transactionservices();
         query1 = "update  Bank_master set balance = balance - " + amount + " where name =" + name + ";";
         query2 = "insert into Bank_transaction values(" + name + "," + amount + ",'W',GETDATE());";
         transactions.Do_transactions(query1, query2);
     }
     else
     {
     }
 }