title: How to send retrieved multiple value array data from view to controller to insert it by loop that add new row until less than count
body: <p>Here is Model</p>
  
  <pre><code>public class candidate_votes
  {
  
      public int ff_id_fk { get; set; }
      public int cmember_id { get; set; }
      public int cparty_id { get; set; }
      public int cand_votos { get; set; }
  }
  </code></pre>
  
  <p>Here is View that i am showing data to insert this data into db so that data is in multi values means bulkdata i want every row add in db untill count</p>
  
  <pre><code>        foreach (var doc in Model)
          {
              &lt;div class="row justify-content-center"&gt;
                  &lt;div class="col-sm-2"&gt;
                      &lt;label&gt;Candidate Name&lt;/label&gt;
                      &lt;p&gt;@doc.member_name&lt;/p&gt;
                      &lt;input type="hidden" name="cmember_id[]" value="@doc.member_id" class="form-control" /&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-2"&gt;
                      &lt;label&gt;Party Name&lt;/label&gt;
                      &lt;p&gt;@doc.party_name&lt;/p&gt;
                      &lt;input type="hidden" name="cparty_id[]" value="@doc.party_id_fk" class="form-control" /&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-2"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label&gt;Total Votes&lt;/label&gt;
                          &lt;input type="text" name="cand_votos[]" class="form-control" /&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          }
  </code></pre>
  
  <p>Here is controller which i am using to post data and on same time first i get data on view with other controller than i am posting that data to this controller</p>
  
  <pre><code>    public ActionResult ps_formForty(candidate_votes cand )
      {
                      Dictionary&lt;string, string&gt; data2 = new Dictionary&lt;string, string&gt;();
          for (int i = 0; i &lt; cand.cmember_id.count; i++)
          {
              data2.Add("cmember_id", (cand.cmember_id).ToString());
              data2.Add("cparty_id", cand.cparty_id.ToString());
              data2.Add("cand_votos", cand.cand_votos.ToString());
              DbObject.Insert("candidate_votes", data2);
  
          }
  
  
          return View();
      }
  </code></pre>
  
  <p>i want something like this and but i couuld not apply loop on candidate_votes cand object 
  Thanks in Advance</p>