Is there a trick to getting formdata from a post request in web api? I can't seem to be able to use namevaluecollection or formdatacollection when submitting a form on the frontend using js FormData(). I have checked the http request to verify the form data is being passed to the server.
JS Form Submit
var formData = new FormData();
formData.append('Email', '[email protected]');
formData.append('Password', '123');
// submit data using xmlhttprequest
Controller Web Api
public IHttpActionResult CheckUser(FormDataCollection FormData)
{
//formdatacollection and namevaluecollection don't seem to return key based values
}