Tengo el siguiente codigo Ajax y HTML.
$("#filter_frm").submit(function (e) {
e.preventDefault();
var data = $(this).serialize();
myChart.showLoading({
text: 'Cargando',
color: '#c23531',
textColor: '#000',
maskColor: 'rgba(255, 255, 255, 0.8)',
zlevel: 0
});
$(".chart_container").show();
$.ajax(
{
url: "/calls/received",
type: "post",
contentType: 'application/json',
data: data,
traditional: true,
success: function (response) {
...
<form action="/calls/received" method="post" id="filter_frm" autocomplete="off" enctype="multipart/form-data">
<div class="form-group">
<select id="filter" class="form-control js-data-example-ajax col-sm-12" multiple="">
<option value="x" name="valor[]">
<option value="x" name="valor[]">
</select>
...
Serializo el array de OPTIONS pero al pasar al controlador MVC me viene como error.
[HttpPost]
[Route("calls/received")]
public ContentResult Received(List<String> users)
{
...
}
Porque puede ser? Gracias.