public override IList <PrivateMessage> FindBySender(User User) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { PrivateMessageDataStore pmDS = new PrivateMessageDataStore(transaction); return(pmDS.FindBySender(User)); } }
public override PrivateMessage FindById(string PrivateMessageId) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { PrivateMessageDataStore pmDS = new PrivateMessageDataStore(transaction); return(pmDS.FindById(PrivateMessageId)); } }
public override void Insert(PrivateMessage PrivateMessage) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { PrivateMessageDataStore pmDS = new PrivateMessageDataStore(transaction); pmDS.Insert(PrivateMessage); transaction.Commit(); } }