public void AddTrans(TransactionsViewModel transviewmodel) { try { tbl_Transactions tbltrans = new tbl_Transactions(); tbltrans.HighLevelTxnID = transviewmodel.HighLevelTxnID; tbltrans.HighLevelTxnDesc = transviewmodel.HighLevelTxnDesc; tbltrans.LifeCycleID = transviewmodel.LifeCycleID; if (transviewmodel.ReqReference != null) { tbltrans.ReqReference = transviewmodel.ReqReference; } tbltrans.daId = transviewmodel.daId; tbltrans.EntityState = DA.DomainModel.EntityState.Added; TransactionsManager transmanager = new TransactionsManager(); transmanager.AddTransaction(tbltrans); } catch (Exception) { throw; } }