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