so I am editing this app and they are doing a post call that looks like this in JS.
var form = $('#addNewEduForm');
var serialized = form.serialize();
Serialized is a html page basically If you print out serialized you will get this. https://www.toptal.com/developers/hastebin/eyotorovar.apache
$.ajax({
type: "POST",
url: "/ListingDetails/OnSaveListingDetails",
data: serialized
As shown above it works, but I am in need of adding a new parameter which makes it look like this and if I have it like this it gives me a null error on my c# post call.
data: { listingDetailsSaveModel: serialized, itemSpecifics: ItemSpecifics }
This is my C# call
[HttpPost]
public JsonResult OnSaveListingDetails(ListingDetailsSaveModel listingDetailsSaveModel, string itemSpecifics)
{}
Basically now listingDetailsSaveModel is null just because I added a new parameter to my call. ItemSpecifics gets its data correctly which is this https://www.toptal.com/developers/hastebin/lejedoxeki.json
Been at this for a few hours but I cant seem to figure it out. Any help would be greatly appreciated.