Since TempData
will return an object
you should try to cast it back.
Controller
public ActionResult About()
{
var model = (TempData["Model"] as CustomerBookingModel)
?? new CustomerBookingModel();
return View(model);
}
About.cshtml
@model CustomerBookingModel
@Html.DisplayForModel();
DisplayTemplates/CustomerBookingModel.cshtml
@model CustomerBookingModel
<div>
@Html.LabelFor(m => m.SomeProperty)
<p>@Model.SomeProperty</p>
</div>