title: Pass Collection of Object from Controller to View Asp.Net MVC
body: <p>Whenever i m passing data from Controller to View this error is showing</p>
  
  <pre><code>Server Error in '/' Application.
  The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[&lt;&gt;f__AnonymousType1`6[System.String,System.String,System.Nullable`1[System.DateTime],System.Nullable`1[System.DateTime],System.String,System.String]]', but this dictionary requires a model item of type 'System.Collections.Generic.IList`1[CaliberCoaching.Models.CareerInformation]'.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
  Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[&lt;&gt;f__AnonymousType1`6[System.String,System.String,System.Nullable`1[System.DateTime],System.Nullable`1[System.DateTime],System.String,System.String]]', but this dictionary requires a model item of type 'System.Collections.Generic.IList`1[CaliberCoaching.Models.CareerInformation]'.
  </code></pre>
  
  <p>This is My Controller Code</p>
  
  <pre><code> public ActionResult JobList()
          {
              CaliberCoachingContext objCaliberCoachingContext = new CaliberCoachingContext();
              var lstCareerInformation = (from job in objCaliberCoachingContext.CareerInformations
                                                              select new { job.NameOfPost, job.PostName, job.StartDate, job.LastDate, job.Eligibility, job.NoOfVacancies }).ToList();
  
              return View(lstCareerInformation);
          }
  </code></pre>
  
  <p>and here is my view</p>
  
  <pre><code>@model IEnumerable&lt;CaliberCoaching.Models.CareerInformation&gt;
  @{
      ViewBag.Title = "JobList";
      Layout = "~/Views/Shared/_CommonLayout.cshtml";
  }
  @foreach (var item in Model)
  {
      &lt;div class="single-item-wrapper"&gt;
  
          &lt;div class="courses-content-wrapper"&gt;
              &lt;h3 class="title-default-left-bold"&gt;@item.NameOfPost&lt;/h3&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>Please Give me the solution for this Problem.</p>