How to call ArrayList from Controller to view in MVC4?
<p>i want to call Arraylist in view. I will explain my issue clearly.</p>

<p><strong>My Controller Code</strong></p>

<pre><code>   public ActionResult customerid()
    {
       List&lt;Customer&gt; n = (from c in db.Customers where c.IsDeleted == false  select c).ToList();
        var customertype = string.Empty;

     for (var i = 0; i &lt; n.Count; i++)
        {
            var objCustomerName = n[i].DisplayName;
            var objCustomerID = n[i].CustomerID;
            var objCusCreatedDate=n[i].CreatedDate;
    var objNextDate = objCusCreatedDate.GetValueOrDefault().AddDays(120);
    var salescount = (from sc in db.SalesOrders where sc.CustomerID==objCustomerID &amp;&amp; sc.CreatedDate &gt;= objCusCreatedDate &amp;&amp; sc.CreatedDate&lt;= objNextDate select sc.SalesOrderID).Count();

            if (salescount &lt;= 3&amp;&amp; salescount&gt; 0)
            {
                customertype = "Exisiting  Customer";
            }
            else if (salescount &gt;= 3)
            {
                customertype = "Potential Customer";
            }
            else
            {
                customertype = "New Customer";
            }

            ArrayList obj = new ArrayList();
            {
                obj.Add(new string[] { objCustomerName, customertype, salescount.ToString()});

            }

             var details = obj;
        }
        return View();
    }
</code></pre>

<p><strong>My View Model</strong></p>

<pre><code> public class CustomerTypeViewModel
{

    public System.Guid CustomerID { get; set; }
    public string CustomerName { get; set; }
    public DateTime CreatedDate { get; set; }
    public string SalesCount { get; set; }
    public string CustomerType { get; set; }

}
</code></pre>

<p>I want to call this array list in view. How I do that? That is i am generating one view based on controller code I need output same as like which is mentioned in the below image . </p>

<p><strong>Wanted Output</strong></p>

<p><a href="http://i.stack.imgur.com/1BEXs.jpg" rel="nofollow">Wanted Output</a></p>

<p>So i put all the fields (which i going to give as a column in View) in Array list. Now i want to call that Arraylist  </p>

<pre><code>     obj.Add(new string[] { objCustomerName, customertype, salescount.ToString()});
</code></pre>

<p>in view . How I do that? I tried to explain my issue as per my level best. please understand my problem and tell me one solution. I am new to MVC so please help me to solve this problem.</p>