Staff Detail Page

@BRT.Detail(tableId:"Contacts",viewId:"People",
fields: new[] {"FirstName","LastName","JobTitle","Phone1","PreferredName","Email","PrimaryImage","MailAddress1","MailAddress2","MailCity","MailState","MailZip","Description"},
template:
@<div>    
    <h1>@((item.IsDBNull("PreferredName") ? item["FirstName"] : item["PreferredName"]) + " " + item["LastName"])</h1> 
    @if(!item.IsDBNull("PrimaryImage") && item.GetFiles("PrimaryImage").Count==1) {
        <img src="@item.GetFiles("PrimaryImage")[0].Url?width=450&height=450" />
    }   
    @if(!item.IsDBNull("JobTitle")) {
        <p>@item["JobTitle"]</p>
    }
    <p><a href="mailto:@item["Email"]">@item["Email"]</a></p>              
    <p>@item["Phone1"]</p>     
    @if(!item.IsDBNull("Description")) {
        <p>@BRT.Raw(item["Description"])</p>
    }
</div>)