DropDownList
was created by the framework
@Html.DropDownList("IdPais", null, "Seleccione un país", htmlAttributes: new { @class = "form-control", id = "SelectPais", onchange = "SelPais()" })
This form sends me the id that I need to the controller. the problem is how to send when I use angular?
<div class="col-lg-10">
<select class="form-control" id="SelectDepa" onchange="SelDepa()">
<option value="">seleccione Departamento</option>
<option ng-repeat="item in myDataDepa" ng-value="item.IdDepartamento">{{item.Nombre}}</option>
</select>
</div>
my controller
public ActionResult Imprimir(Parameters parametros)
{
//**
}
my model
public class Parameters
{
public int IdPais { get; set; }
public int IdDepartamento { get; set; }
}