EcAttendanceMatterBLL.OpenTransaction();DbTransaction Tran = EcAttendanceMatterBLL.Transaction;_wfibll.Transaction = Tran;try{ EcAttendanceMatterBLL.Insert(_EcAttendanceMatterInfo, ""); _wfibll.Insert(_wfi, ""); Tran.Commit();}catch(Exception ex){ Tran.Rollback();}