How to pass List from view to controller - MVC 4
<p>I missed a little thing while passing a list from view to controller. It displays null in <code>[HttpPost]</code> method of controller. Anyone please guide that how can I get list data from view to controller. Please view my complete code below.</p>

<pre><code>@model List&lt;payorder_draft_printing.Models.registration&gt;

@{
    ViewBag.Title = "bulk_approval";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

&lt;div class="container"&gt;

    &lt;div class="row" style="text-align: left"&gt;

        &lt;h2&gt;&lt;u&gt;Bulk Approval&lt;/u&gt;&lt;/h2&gt;

        &lt;br /&gt;
        &lt;br /&gt;

        @using (Html.BeginForm("bulk_approval", "Sms", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            &lt;div style="width: 700px;" align="center"&gt;

                &lt;table id="GetSerial" class="table"&gt;
                    &lt;thead&gt;
                        &lt;tr class="ui-widget-header"&gt;
                            &lt;th&gt;Account Number&lt;/th&gt;
                            &lt;th&gt;Mobile Number&lt;/th&gt;
                            &lt;th&gt;Customer Name&lt;/th&gt;
                            &lt;th&gt;Branch Code&lt;/th&gt;
                            &lt;th&gt;Bulk Upload&lt;/th&gt;
                            &lt;th&gt;Create Date&lt;/th&gt;
                            &lt;th&gt;Created By&lt;/th&gt;
                            &lt;th&gt;Active&lt;/th&gt;
                           &lt;/tr&gt;
                    &lt;/thead&gt;

                    &lt;tbody&gt;

                        @if (Model != null)
                        {
                            foreach (var m in Model)
                            {
                            &lt;tr style="height: 25px; border-bottom: 1px solid gray"&gt;
                                &lt;td style="min-width: 120px"&gt;@m.account_number&lt;/td&gt;
                                &lt;td style="min-width: 120px; width: 450px;"&gt;@m.mobile_number&lt;/td&gt;
                                &lt;td style="min-width: 250px; width: 250px"&gt;@m.customer_name&lt;/td&gt;
                                &lt;td style="min-width: 100px; width: 100px"&gt;@m.BranchCode&lt;/td&gt;
                                &lt;td style="min-width: 100px; width: 100px"&gt;@m.BulkUpload&lt;/td&gt;
                                &lt;td style="min-width: 150px;"&gt;@string.Format("{0:dd-MMM-yyyy}", @m.create_date)&lt;/td&gt;
                                &lt;td style="min-width: 100px;"&gt;@m.created_by&lt;/td&gt;
                                &lt;td style="min-width: 100px; width: 100px"&gt;@m.Active&lt;/td&gt;
                            &lt;/tr&gt;
                            }
                        }

                    &lt;/tbody&gt;

                &lt;/table&gt;
                &lt;input type="submit" value="Update" /&gt;
            &lt;/div&gt;
        }

    &lt;/div&gt;

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

<p>In the following code i am trying to get the submitted list from view to controller but its result is null.</p>

<pre><code>[HttpPost]
public ActionResult bulk_approval(List&lt;registration&gt; model)//here my model shows null, please guide.
{
    foreach (var abc in model)
    {

    }
    return View();
}
</code></pre>

<p>Following is my class.</p>

<pre><code>public class registration
{
    public int Id { get; set; }
    public string mobile_number { get; set; }
    public string account_number { get; set; }
    public string customer_name { get; set; }
    public int FrequencyId { get; set; }
    public bool Active { get; set; }
    public string BranchCode { get; set; }
    public bool BulkUpload { get; set; }
    public string created_by { get; set; }
    public DateTime create_date { get; set; }
}
</code></pre>