@using SchoolDataLayer
@model SchoolDataLayer.Pupil
@{
ViewBag.Title = "Pupil";
}
<h2>Schülerdetails</h2>
<fieldset id="details">
<legend>Schülerdaten</legend>
<label>Katalognr</label>
<output>@Model.CatalogNo</output>
<br />
<label>Nachname</label>
<output class="bold">@Model.Lastname</output>
<br />
<label>Vorname</label>
<output>@Model.Firstname</output>
</fieldset>
<p>
@Html.ActionLink("Edit", "Edit", new { id=Model.PupilId }) |
@Html.ActionLink("Back to List", "Index")
</p>
The exception occurs in the Line with "@Model.CatalogNo". I have no idea how to go on. Anyone knows whats the problem?