1
How to pass the value of @Html.DropDownListFor
selected by a @Url.Action
?, example:
<div class="row">
<div class="col-xs-4">
<label>Cliente</label><br />
@Html.DropDownListFor(x => x.Atendimento.ClienteID, (IEnumerable<SelectListItem>)ViewBag.Clientes, "[Selecione]", new { @class = "form-control" })
</div>
<div class="col-xs-4" id="divPaciente">
<label>Paciente</label><br />
@Html.DropDownListFor(x => x.Atendimento.PacienteID, (IEnumerable<SelectListItem>)ViewBag.Pacientes, "[Selecione]", new { @class = "form-control" })
</div>
<div class="col-xs-1">
<label><br /></label><br />
<a href="@Url.Action("Incluir", "Paciente", new { ClienteID = "**Como informar o valor do DropDownListFor**"})" style="text-decoration: none;" title="Incluir Paciente" ><span class="fui-plus-circle" style="font-size: 22px;"></span></a>
</div>
</div>