@model EnVisage.Models.StrategicGoalModel @using EnVisage.Code.HtmlHelpers @using EnVisage.Code @{ ViewBag.Title = Model != null ? "Edit " + Model.Name : "Add Strategic Goal"; var companies = string.Join("','", Model.CompanyId == null ? new List() : Model.CompanyId); companies = "'" + companies + "'"; } @using (Ajax.BeginForm("Edit", "StrategicGoal", new AjaxOptions { HttpMethod = "Post", OnSuccess = "onSuccess", OnFailure = "onFailure(xhr)", UpdateTargetId = "editReload" }, new { @id = "editGoalForm" })) { @Html.AntiForgeryToken() @Html.HiddenFor(t => t.Id) }