How to pass multiple parameters to MVC controller including list/array of strings?
<p>I have a ajax call and I'm trying to post an array of strings, as well as an id and search parameter to a controller.  Anyone able to show me how to do this?
Example:</p>

<p><strong><em>jQuery</em></strong></p>

<pre><code>$("body").on("click", "#btnClientModalSearch", function (e) {
    preventDefaultAction(e);
    var url = GetUrlPath() + "/Client/GetClientCalendarSearchResults";
    var searchTypeId = $("#ddlSearchType").val();
    var searchParameter = $("#tbSearchParameter").val();
    var diaryId = $("#SelectedEventId").val();
    var values = [];
    $(".referralIdList").each(function () {
        var referralId = $(this).attr("id");
        var arr = referralId.split('referralId');
        values.push(arr[1]);
    });
    var postData = { alreadyAddedReferralIds: values };
    $.ajax({
        url: url,
        data: { searchTypeId: searchTypeId, searchParameter: searchParameter, diaryId: diaryId, alreadyAddedReferralIds: postData },
        cache: false,
        type: "POST",
        success: function (result) {
            if (result.success === true) {
                $("#searchResultsPlaceHolder").html(result.view);
            }
        },
        error: function (responseText, textStatus, errorThrown) {
            alert('Error - ' + errorThrown);
        }
    });
});
</code></pre>

<p><strong><em>Controller</em></strong></p>

<pre><code> public JsonResult GetClientCalendarSearchResults(string searchTypeId, string searchParameter, string diaryId, List &lt; string &gt; alreadyAddedReferralIds) {}
</code></pre>

<p>When I try this, the <em>alreadyAddedReferralIds</em> is always empty at the controller.</p>