title: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[AVASupplierPortal.Models.PurchaseOrder]'
body: <p>In my MVC project im getting error while returning the particular 
  System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[AVASupplierPortal.Models.PurchaseOrder]', but this dictionary requires a model item of type 'AVASupplierPortal.Models.PurchaseOrder'.</p>
  
  <p><strong>How to display the list data's to view?</strong></p>
  
  <pre><code>    @model AVASupplierPortal.Models.PurchaseOrder
  
  @{
      ViewBag.Title = "Edit";
  }
  
  
  @using (Html.BeginForm())
  {
      @Html.AntiForgeryToken()
  
      &lt;div class="form-horizontal"&gt;
          &lt;hr /&gt;
          @Html.ValidationSummary(true, "", new { @class = "text-danger" })
          @Html.HiddenFor(model =&gt; model.POID)
  
          &lt;div class="shipment_innercontainer"&gt;
  
              &lt;div class="shipe_header-details"&gt;
                  &lt;div class="shipe_header_list"&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;PO #&lt;/label&gt;
                          &lt;label&gt;@Html.DisplayFor(model =&gt; model.PONumber)&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;Carrier&lt;/label&gt;
                          &lt;label&gt;@Html.DisplayFor(model =&gt; model.Carrier)&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;Shipment Type&lt;/label&gt;
                          &lt;label&gt;&lt;span class="ship_icon shippingicons icontext"&gt;@Html.DisplayFor(model =&gt; model.ShipmentType)&lt;/span&gt;&lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="shipe_header_list"&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;PO Date&lt;/label&gt;
                          &lt;label&gt; @Convert.ToString(string.Format("{0:dd/MM/yyyy}", Model.PODate))&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;Status&lt;/label&gt;
                          &lt;label&gt;@Html.DisplayFor(model =&gt; model.POStatusDetails.OrderByDescending(p =&gt; p.StatusID).First().MSTPOStatu.POStatus)&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;Branch Name&lt;/label&gt;
                          &lt;label&gt;@Html.DisplayFor(model =&gt; model.BranchName)&lt;/label&gt;
                      &lt;/div&gt;
  
                  &lt;/div&gt;
                  &lt;div class="shipe_header_list"&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;Retailer&lt;/label&gt;
                          &lt;label&gt;@Html.DisplayFor(model =&gt; model.MSTRetailerDetail.RetailerName)&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;File #&lt;/label&gt;
                          &lt;label&gt;@Html.DisplayFor(model =&gt; model.FileDetail)&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class="shipe_list"&gt;
                          &lt;label&gt;Customer #&lt;/label&gt;
                          &lt;label&gt;@Html.DisplayFor(model =&gt; model.Customer)&lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="Options-Header"&gt;
                  &lt;div&gt;
                      &lt;div class="Options"&gt; &lt;a href="#"&gt; &lt;span&gt;&lt;img src="~/Content/Images/Save_Icon.PNG" alt="Save" /&gt;&lt;/span&gt; &lt;span&gt;Save&lt;/span&gt; &lt;/a&gt; &lt;/div&gt;
                      &lt;div class="Options"&gt; &lt;a href="#"&gt; &lt;span&gt;&lt;img src="~/Content/Images/Print_Icon.PNG" alt="Print" /&gt;&lt;/span&gt; &lt;span&gt;Print&lt;/span&gt; &lt;/a&gt; &lt;/div&gt;
                      &lt;div class="Options"&gt; &lt;a href="#"&gt; &lt;span&gt;&lt;img src="~/Content/Images/History_Icon.PNG" alt="History" /&gt;&lt;/span&gt; &lt;span&gt;History&lt;/span&gt; &lt;/a&gt; &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="TabsContainer"&gt;
                  &lt;ul&gt;
                      &lt;li class="Tab-ISF Tab-Active"&gt;&lt;a href="#"&gt;Purchase Order&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="Tab-BaseFile"&gt;&lt;a href="#"&gt;Acknowledgement&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="Tab-7501"&gt;&lt;a href="#"&gt;ASN&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="Tab-DeliverOrder"&gt;&lt;a href="#"&gt;Invoice&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;div class="shipment_forms"&gt;
                  &lt;div class="Content_Heading"&gt;
                      &lt;h1&gt;Purchase Order Details&lt;/h1&gt;
                  &lt;/div&gt;
                  &lt;form&gt;
                      &lt;div class="PersonalFormFields"&gt;
                          &lt;div class="EPE_FORM_Container"&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Requisition Number&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.RequistionNumber) &lt;/label&gt;
                                      &lt;input type="text" value=@Html.DisplayFor(model =&gt; model.RequistionNumber) style="display:none" /&gt;
                                      &lt;div class="FORM_ERROR"&gt; &lt;span&gt;Please Enter Requisition No&lt;/span&gt; &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Contact Name&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.ContactName)&lt;/label&gt;
                                      &lt;input type="text" value=@Html.DisplayFor(model =&gt; model.ContactName) style="display:none" /&gt;
                                      &lt;div class="FORM_ERROR"&gt; &lt;span&gt;Please Enter Contact Name&lt;/span&gt; &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Due Date&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY Date_Pick"&gt;
                                      &lt;label&gt;@Convert.ToString(string.Format("{0:dd/MM/yyyy}", Model.DueDate))&lt;/label&gt;
                                      &lt;input type="text" id="datepicker" value=@Html.DisplayFor(model =&gt; model.DueDate) style="display:none" /&gt;
                                      &lt;span class="date_icon" style="display:none"&gt;&lt;/span&gt;
                                      &lt;div class="FORM_ERROR"&gt; &lt;span&gt;This Must Be Field Out&lt;/span&gt; &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="EPE_FORM_Container"&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Status&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;select id="test" class="speed"&gt;
                                          &lt;option&gt;Acknowledged&lt;/option&gt;
                                          &lt;option&gt;ASN Sent&lt;/option&gt;
                                          &lt;option&gt;Invoice Sent&lt;/option&gt;
                                      &lt;/select&gt;
                                      &lt;div class="FORM_ERROR"&gt; &lt;span&gt;This Must Be Field Out&lt;/span&gt; &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Tracking Number&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.TrackingNumber)&lt;/label&gt;
                                      &lt;input type="text" value=@Html.DisplayFor(model =&gt; model.TrackingNumber) style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Phone&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.Phone)&lt;/label&gt;
                                      &lt;input type="text" value=@Html.DisplayFor(model =&gt; model.Phone) style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="EPE_FORM_Container"&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Fax&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.Fax)&lt;/label&gt;
                                      &lt;input type="text" value=@Html.DisplayFor(model =&gt; model.Fax) style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
              &lt;div class="shipment_forms"&gt;
                  &lt;div class="Content_Heading"&gt;
                      &lt;h1&gt;Address Information&lt;/h1&gt;
                  &lt;/div&gt;
                  &lt;form&gt;
                      &lt;div class="PersonalFormFields"&gt;
                          &lt;div class="EPE_FORM_Container"&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Bill To&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;select class="speed"&gt;
                                          &lt;option&gt;Select&lt;/option&gt;
                                          &lt;option&gt;Administrator&lt;/option&gt;
                                      &lt;/select&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Billing Address&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POBillToAddress.POBillingAddress)&lt;/label&gt;
                                      &lt;textarea style="display:none"&gt;&lt;/textarea&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Billing City&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POBillToAddress.POBillingCity)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="EPE_FORM_Container"&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Billing State&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POBillToAddress.POBillingState)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Billing Code&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POBillToAddress.POBillingCode)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Billing Country&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POBillToAddress.POBillingCountry)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
  
                          &lt;/div&gt;
                          &lt;div class="EPE_FORM_Container"&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Deliver To&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Shipping Address&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POShipToAddress.POShippingAddress)&lt;/label&gt;
                                      &lt;textarea style="display:none"&gt;&lt;/textarea&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Shipping City&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POShipToAddress.POShippingCity)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="EPE_FORM_Container"&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Shipping State&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POShipToAddress.POShippingState)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Shipping Code&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POShipToAddress.POShippingCode)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="FORM_PANEL"&gt;
                                  &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Shipping Country&lt;/span&gt; &lt;/div&gt;
                                  &lt;div class="FORM_ENTRY"&gt;
                                      &lt;label&gt;@Html.DisplayFor(model =&gt; model.POShipToAddress.POShippingCountry)&lt;/label&gt;
                                      &lt;input type="text" value="" style="display:none" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
  
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
              &lt;div class="sf15_sf20_tables"&gt;
                  &lt;div class="Bill_Heading"&gt;
                      &lt;h1&gt;Product Details&lt;/h1&gt;
                  &lt;/div&gt;
                  &lt;div class="sf_container Bill_Info"&gt;
                      &lt;div class="sf_table-part deliverT"&gt;
                          &lt;table class="table ProjectTable deliverytable"&gt;
                              &lt;tr&gt;
                                  &lt;th&gt;Product&lt;/th&gt;
                                  &lt;th&gt;Retailer Product Number&lt;/th&gt;
                                  &lt;th&gt;Notes&lt;/th&gt;
                                  &lt;th&gt;Qty&lt;/th&gt;
                                  &lt;th&gt;Unit Cost&lt;/th&gt;
                                  &lt;th&gt;Retailer Price&lt;/th&gt;
                                  &lt;th&gt;Discount(%)&lt;/th&gt;
                                  &lt;th&gt;Total&lt;/th&gt;
                                  &lt;th&gt;Action&lt;/th&gt;
                              &lt;/tr&gt;
                              @foreach (var lineItems in Model.POLineItemDetails)
                              {
                              &lt;tr&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.ItemDescription)&lt;/td&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.RetailerItemNumber)&lt;/td&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.Notes)&lt;/td&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.Quantity)&lt;/td&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.UnitCost)&lt;/td&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.RetailerPrice)&lt;/td&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.Discount)&lt;/td&gt;
                                  &lt;td&gt;@Html.DisplayFor(modelItem =&gt; lineItems.Total)&lt;/td&gt;
                                  &lt;td&gt;&lt;span class="delete_icon1"&gt;&lt;/span&gt;&lt;/td&gt;
                              &lt;/tr&gt;
                              }
                          &lt;/table&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="form-group" style="display:none"&gt;
                  @Html.LabelFor(model =&gt; model.PONumber, htmlAttributes: new { @class = "control-label col-md-2" })
                  &lt;div class="col-md-10"&gt;
                      @Html.EditorFor(model =&gt; model.PONumber, new { htmlAttributes = new { @class = "form-control" } })
                      @Html.ValidationMessageFor(model =&gt; model.PONumber, "", new { @class = "text-danger" })
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="shipment_forms"&gt;
                  &lt;div class="Content_Heading"&gt;
                      &lt;h1&gt;Terms &amp; Conditions&lt;/h1&gt;
                  &lt;/div&gt;
                  &lt;div class="PersonalFormFields"&gt;
                      &lt;div class="EPE_FORM_Container"&gt;
  
                          &lt;div class="FORM_PANEL full-width-textarea"&gt;
                              &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Terms &amp; Conditions&lt;/span&gt; &lt;/div&gt;
                              &lt;div class="FORM_ENTRY"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;div class="col-md-10"&gt;
                                          @Html.EditorFor(model =&gt; model.TermsAndConditions, new { htmlAttributes = new { @class = "form-control" } })
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                      &lt;/div&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="shipment_forms"&gt;
                  &lt;div class="Content_Heading"&gt;
                      &lt;h1&gt;Description Informations&lt;/h1&gt;
                  &lt;/div&gt;
  
                  &lt;div class="PersonalFormFields"&gt;
                      &lt;div class="EPE_FORM_Container"&gt;
  
                          &lt;div class="FORM_PANEL full-width-textarea"&gt;
                              &lt;div class="FORM_FIELD"&gt; &lt;span&gt;Description&lt;/span&gt; &lt;/div&gt;
                              &lt;div class="FORM_ENTRY"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;div class="col-md-10"&gt;
                                          @Html.EditorFor(model =&gt; model.Description, new { htmlAttributes = new { @class = "form-control" } })
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                      &lt;/div&gt;
  
                  &lt;/div&gt;
  
              &lt;/div&gt;
  
              &lt;div class="SearchButtonAdvance formbutton"&gt;
                  &lt;div class="form-group"&gt;
                      &lt;div class="col-md-offset-2 col-md-10"&gt;
                          &lt;input type="submit" value="Save" class="btn btn-default" /&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  
  @*&lt;div&gt;
          @Html.ActionLink("Back to List", "Index")
      &lt;/div&gt;*@
  
  &lt;script src="~/Scripts/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="~/Scripts/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script src="~/Scripts/jquery.validate.unobtrusive.min.js"&gt;&lt;/script&gt;
  </code></pre>