title: how can i push json data to csharp list of object by javascript?
body: <p>my question is pushing json list to C# list of object inside of javascript code. How can i push $scope.items into CustomColumns ?  requestData.CustomColumns.push($scope.items);  is not working... My C# model is :</p>
  
  <pre><code>  public partial class WorkflowDefinitionDTO {
  
      public List&lt;WorkflowDefinitionCustomColumnDTO&gt; CustomColumns { get; set; }
  
  }
  
      public partial class WorkflowDefinitionCustomColumnDTO {
      public string Name { get; set; }
      public int Type { get; set; }
      public string Format { get; set; }
      public decimal MinValue { get; set; }
      public decimal MaxValue { get; set; }
      public string DefaultValue { get; set; }
      public int Visibility { get; set; }
      public int Requirements { get; set; }
      public List&lt;string&gt; SelectTypeValues { get; set; }
  }
  </code></pre>
  
  <p>My javascript code for pushing data:</p>
  
  <pre><code>                var requestData = {
              CustomColumns: []
                              };
          requestData.CustomColumns.push($scope.items);
  </code></pre>
  
  <p>$scope.items is below :</p>
  
  <pre><code>                $scope.items.push({
                  Type: result.FieldType.value, Name: result.CustomFieldName, Format: "", MinValue: 0, MaxValue: 1000,
                  DefaultValue: result.DefaultValue, Visibility: 1, Requirements: 0, CanBeChangebleOk: result.CanBeChangebleOk.value
              });
  </code></pre>