Ejemplo n.º 1
0
 public void CreateForContract(PaymentOrder o, int id)
 {
     o.State = PoState.Registered;
     using (var t = new TransactionScope())
     {
         var pid = u.Insert(o);
         u.UpdateWhatWhere <Contract>(new { paymentOrderId = pid }, new { id });
         t.Complete();
     }
 }