So I get the form:
public JsonResult Import(**FormCollection** form)
So I get the file:
public JsonResult Import(**HttpPostedFileBase** file)
$.ajax({
url: urlImport,
method: 'post',
data: new FormData($('#formUpdate')[0],
cache: false,
contentType: false,
processData: false,
success: function (result) {
if (result.Success === true) {
ShowMessageSuccess('Process', result.MsgReturn);
} else {
ShowMessageError('Process', result.MsgReturn);
}
},
});
}