Ready for testing creating first OutboundComm

This commit is contained in:
Rick Falkvinge
2013-06-13 19:15:37 +00:00
parent 59c06c28ee
commit a29e94dbde
4 changed files with 111 additions and 11 deletions
+3 -3
View File
@@ -141,7 +141,7 @@ namespace Swarmops.Database
#region Creation and manipulation -- stored procedures
public int CreateOutboundCommRecipient(int senderPersonId, int fromPersonId, int organizationId, string resolverClass, string recipientDataXml, string transmitterClass, string payloadXml, OutboundCommPriority priority)
public int CreateOutboundCommRecipient(int outboundCommId, int personId)
{
using (DbConnection connection = GetMySqlDbConnection())
{
@@ -150,8 +150,8 @@ namespace Swarmops.Database
DbCommand command = GetDbCommand("CreateOutboundCommRecipient", connection);
command.CommandType = CommandType.StoredProcedure;
AddParameterWithName(command, "outboundCommId", senderPersonId);
AddParameterWithName(command, "personId", fromPersonId);
AddParameterWithName(command, "outboundCommId", outboundCommId);
AddParameterWithName(command, "personId", personId);
return Convert.ToInt32(command.ExecuteScalar());
}