@model List @{ ViewData["Title"] = "Create"; Layout = "~/Views/Shared/_LayoutAreaRis.cshtml"; List lst = new List(); lst = Model; }
@*
@Html.DropDownListFor(x => x.CodAutista, (IEnumerable)ViewBag.Autisti, new { @class = "agy-form-field require" })
 
@Html.TextBox("DataGiro", null, new { type = "date", @class = "agy-form-field require" })
 
 
 
@Html.HiddenFor(x => x.SerialeGiro) @Html.HiddenFor(x => x.Autista) @Html.HiddenFor(x => x.BancaliRecuperati) @Html.HiddenFor(x => x.ImportoRecuperato) @Html.HiddenFor(x => x.DataChiusura)
*@
@for (var i = 0; i < lst.Count(); i++) { @Html.HiddenFor(a=>lst[i].Automezzo) @Html.HiddenFor(a=>lst[i].Autista) }
  Data Autista Automezzo
@Html.CheckBoxFor(a=>lst[i].IsSelected) @Html.DisplayFor(a=>lst[i].DataGiro) @Html.HiddenFor(a=>lst[i].DataGiro) @Html.DisplayFor(a=>lst[i].CodAutista)-@Html.DisplayFor(a=>lst[i].Autista) @Html.HiddenFor(a=>lst[i].CodAutista) @Html.DisplayFor(a=>lst[i].CodMezzo)-@Html.DisplayFor(a=>lst[i].Automezzo) @Html.HiddenFor(a=>lst[i].CodMezzo)
@Html.ActionLink("Seleziona tutti", "Create", "Giri",new { sel = true }, null)   @Html.ActionLink("Deleziona tutti", "Create", "Giri",new { sel = false }, null)
@section Scripts { @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } }