@model EnVisage.Models.ViewModel @using EnVisage.Code @using EnVisage.Code.Extensions @{ ViewBag.Title = Model.Id != Guid.Empty ? "Edit " + Model.Name : "Add View"; var availableCompanies = Utils.GetCompaniesTreeForCurrentUser(); var teams = Model.Teams != null ? Model.Teams.GetAsCommaSeparatedList() : ""; var watchers = Model.Watchers != null ? Model.Watchers.GetAsCommaSeparatedList() : ""; var companies = Model.Companies != null ? Model.Companies.GetAsCommaSeparatedList() : ""; }
@using (Ajax.BeginForm("Edit", "View", new AjaxOptions { HttpMethod = "Post" }, new { id = "editViewForm" })) { @Html.AntiForgeryToken() @Html.HiddenFor(t => t.Id) @Html.HiddenFor(t => t.backController) @Html.HiddenFor(t => t.backAction) }