title: Add query result to the list of Model in asp.net mvc
body: <p>I created one model in my ASP.net MVC Project :</p>
  
  <pre><code>public class ProductListingModels:ItemEntityDataContext
  {
    public int ID { get; set; }
    public string Name { get; set; }
    public int DepartmentID { get; set; }
    public int BrandID { get; set; }
   }
  </code></pre>
  
  <p>And I have one controller :</p>
  
  <pre><code>public class ProductListingController : Controller
  {
     // GET: /ProductListing/
     public JsonResult Index(string depID)
     {
     Context DataContext = new Context();
     JsonResult jr = new JsonResult();
     int dep = Convert.ToInt32(depID);
     var ien_item =   from i in DataContext.DataContext.Items
          join c in DataContext.DataContext.Categories on i.CategoryID equals c.ID
          join d in DataContext.DataContext.Departments on i.DepartmentID equals d.ID
          join brand in DataContext.DataContext.Brands on i.BrandID equals brand.ID
          orderby i.LastUpdated descending
          where i.DepartmentID == dep &amp;&amp; i.Active &gt; 0 &amp;&amp; i.WebsiteShow &gt; 0 &amp;&amp; c.Active &gt; 0 
  
                      select i;
  
       List&lt;ProductListingModels&gt; prom = new List&lt;ProductListingModels&gt;();
       //
       //Adding ien_item to the prom
       //
       jr.Data = prom;
           jr.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
           return jr;
     }
  }
  public class Context : ICEWeb.Models.ItemEntityDataContext
  {
  
  }
  </code></pre>
  
  <p>I want to add each data that I have query from database by linq (ien_item) to the object of ProductListingModel(prom object), 
  and then return it as the json to my view.</p>
  
  <p>Could anyone give me some ideas please.</p>
  
  <p>Thanks so much.</p>