private void FinalizeListLine(ApiListLine listLine, string tableName)
 {
     if (listLine == null || string.IsNullOrEmpty(listLine.Iid))
     {
         return;
     }
     using (var cmd = this.CreateCommand())
     {
         cmd.CommandText = string.Format("UPDATE {0} SET " + ServiceHelper.REMOTE_ID_COLUMN + " = @remoteIid, changed = 0 WHERE iid = @iid", tableName);
         cmd.Parameters.Add("@remoteIid", SqlDbType.VarChar, ServiceHelper.REMOTE_ID_COL_SIZE).Value = listLine.Iid;
         cmd.Parameters.Add("@iid", SqlDbType.BigInt).Value = listLine.SecretaryId;
         cmd.ExecuteNonQuery();
     }
 }
Example #2
0
 public AsyncRequestResult BeginPostListLine(ApiListLine region, RequestCompleted <object> callback, Object asyncState)
 {
     return(BeginPostSerializableTTOut("Results", "PostListLine", String.Empty, region, callback, asyncState, false));
 }
Example #3
0
 public bool PostListLine(ApiListLine listLine)
 {
     PostSerializableT <ApiListLine, object>("Results", "PostListLine", String.Empty, listLine, false);
     return(true);
 }