Error with PartialView with different model

kennysamuerto

New Member
update: if I remove the code from the partial view, there's no error.I'm trying to insert a partial view that uses a different table. I want to grab a few records and show them. I have no viewmodels.model:\[code\]public class Transactions{ public int Id { get; set; } public int CustomerId { get; set; } public int MovieId { get; set; }}\[/code\]controller:\[code\]public ActionResult CheckedOut(int Id){ var trans = db.Transactions.Where(m => m.CustomerId == Id); return View(trans);}\[/code\]partial view:\[code\]@model IEnumerable <Movie.Models.Inventory>@foreach (var tid in Model){ <p>@tid.MoviesId</p>}\[/code\]view:\[code\] @{Html.RenderAction("CheckedOut", "Customer", new { id = Model.Id });}\[/code\]error on main view page:\[code\]{"Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'."}\[/code\]
 
Top