How do I return option value from DropDownList into controller in ASP.NET
Here is the Razor code @Html.DropDownList("ddl", Model.estados.Select(item => new SelectListItem { Value = item.Id_Estado.ToString(), Text = item.Nombre_Estado, Selected = "select" == item.Id_Estado.ToString() }), new { @class = "form-select", aria_label="Default select example" } ) Here is the view model, it's an…