The problem is that the Layout the View is using expects a model of Ticket
and you are passing it a Ticket[]
(notice that this is done implicitly when you use return View(model)
).
Normally, since the Layout is used through multiple Views, the Layout does not declare a @model
. Removing the @model
from the Layout will solve your problem.