@using (Html.BeginForm((!string.IsNullOrEmpty(Model.LastName) ? "EditContact" : "AddContact"), "Clients", FormMethod.Post, new { @class = "form-horizontal innerForm" }))
{
@Html.AntiForgeryToken()
@Html.HiddenFor(t=>t.Id)
@Html.HiddenFor(t=>t.ParentId)
@Html.ValidationSummary(false, "The contact could not be saved due to the following errors:")