save all tr elements of a table with checkbox and send it to the controller , in MVC 4
<p>I am new to MVC and now stuck in a serious problem. it is for me, very serious
I need to load a view with a list of meetings (which is loading fine) in html , I have added a checkbox to each row also. Now I need to save to the database ,only the checked values. But the controller is returning null when posting.. Really stuck and cant find a solution.
Pls see code below which I have done</p>

<p>Model</p>

<pre><code>public class aMeet
{
    public List&lt;AcceptedRecords&gt; amList { get; set; }

    public static List&lt;AcceptedRecords&gt; GetamList()
    {
        DataSet ds = new DataSet();    
        List&lt;AcceptedRecords&gt; resultlist = new List&lt;AcceptedRecords&gt;();

        using (cmd)
        {
            cmd.CommandText = @"SELECT  Line_code,person_code,person_address from tbl where meeting_code =859489;
            ds = cmd.ExecuteDataSet();
        }
        if (!Utils.IsDataSetEmpty(ds))
        {
            AcceptedRecords tpmApp;
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                tpmApp = new AcceptedRecords();
                tpmApp = tpmApp.LoadRecords(row);
                resultlist.Add(tpmApp);
            }
        }

        return resultlist;
    }
}
</code></pre>

<p>Model </p>

<pre><code> public class AcceptedRecords
{
    public int line_Code { get; set; }
    public string person_Name { get; set; }
    public string person_Address { get; set; }
    public bool extra_checked { get; set; }
}
</code></pre>

<p>View</p>

<pre><code>@model projct.Models.aRecs
@using (Html.BeginForm("AddRecord","Home"))
</code></pre>

<p>{</p>

<pre><code>         &lt;table id="tbl" style ="width:100%"   cellpadding="0" cellspacing="0" class="race-fields"&gt;
                    &lt;thead&gt;
                        &lt;tr&gt;
                            &lt;th style="width:500px"&gt;line code&lt;/th&gt;
                            &lt;th style="width:100px"&gt;name&lt;/th&gt;
                            &lt;th style="width:500px"&gt;address&lt;/th&gt;
                            &lt;th style="width:500px"&gt;extra&lt;/th&gt;


                        &lt;/tr&gt;
                    &lt;/thead&gt;

           &lt;tbody&gt;
             &lt;tr&gt;

                @for (int i = 0; i &lt; Model.amList.Count; i++)
                {
                    &lt;tr class="EvenRow"&gt;
                        &lt;td&gt;
                            @Html.DisplayFor(m =&gt; m.amList[i].line_Code)          &lt;/td&gt;
                        &lt;td&gt;@Html.DisplayFor(m =&gt; m.amList[i].person_name)  &lt;/td&gt;
                        &lt;td&gt;@Html.DisplayFor(m =&gt; m.amList[i].person_address)  &lt;/td&gt;
                                                  &lt;td&gt;
                            @Html.CheckBoxFor(m =&gt; m.amList[i].extra_checked) &lt;/td&gt;

                    &lt;/tr&gt;
                }

              &lt;/tr&gt; 
              &lt;tr&gt;
                &lt;span&gt;                                    
                &lt;input type="submit" Value ="Save"/&gt;                             
                &lt;/span&gt;
              &lt;/tr&gt;
           &lt;/tbody&gt;

      &lt;/table&gt;
</code></pre>

<p>}</p>

<p>Controller</p>

<pre><code>   [HttpPost]        
    public ActionResult AddRecord(List&lt;aMeet&gt; spm)
    {
        if (spm == null)
            throw new ApplicationException("No Parameters passed to Create");

                   int? appID = 0;
        return Json(appID);
    }
}
</code></pre>

<p>--- It Is triggering to controller on Save but model [spm] is null.
How to get this corrected. Here I need to save to database the tr elements that are checked. Please request any help. I have tried a lot of things but the model is always null/
Many thanks</p>