private void SetSplitTestStatus(Guid splitTestId, Guid statusId) { var bulkEmailSplit = new BulkEmailSplit(UserConnection); if (bulkEmailSplit.FetchFromDB(splitTestId)) { bulkEmailSplit.SetColumnValue("StatusId", statusId); bulkEmailSplit.Save(); } }
virtual protected string GetTransferTableName(BulkEmailSplit bulkEmailSplit, Guid id) { var transferTableName = bulkEmailSplit.TransferTableName; if (string.IsNullOrEmpty(transferTableName)) { transferTableName = string.Format("ST_{0}", id.ToBase36()); var sp = new StoredProcedure(UserConnection, "tsp_CreateSplitTestTargetTbl"); sp.WithParameter("tableName", transferTableName); sp.Execute(); bulkEmailSplit.TransferTableName = transferTableName; bulkEmailSplit.Save(); } return(transferTableName); }