Вы можете использовать AJAX:
$.ajax({
url: '@Url.Action("DepartmentList", new { id = "123" })',
type: 'GET',
success: function(result) {
// the result variable here will represent the list returned by your controller
$.each(result, function() {
// we are looping through the elements of the list
// and each element will have an ID and Name property that
// you could use here:
alert('id=' + this.ID + ', name=' + this.Name);
});
}
});
Например, если вы хотите создать список якорей и добавить их в конец тела:
success: function(result) {
$.each(result, function() {
$('body').append(
$('<a/>', {
text: this.Name,
href: 'blahblah.com/Products/dep=' + this.ID + '&tab=2'
})
);
});
}