How get values in fields [NotMapped] attributes using ajax post (ASP NET MVC 4)?
$('#btnSalvarParcela').click(function () {
$.ajax({
url: '@Url.Action("CadastroLancamentoParcelar", "LancamentoReceitaDespesa")',
type: 'POST',
data: $("#LancamentoForm").serialize(),
cache: false,
context: this,
success: function (result) {
$("#partialLancamentoReceitaDespesa").html(result);
mudarComboTipoLancamento();
}
});
});
("#LancamentoForm").serialize() - the field [notmapped] is going to controller as null, is to retrieve these values?
("#LancamentoForm")? is the value of a textbox? hidden field? because it looks like you are not passing this correctly