[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: How to Post json data to MVC controller

  • Thread starter laura@refactoredmedia.com
  • Start date
Status
Not open for further replies.
L

laura@refactoredmedia.com

Guest
I tried creating the class and when debugging I saw that the class was still null. I was able to get it to work using Javascript return fetch(sf_appPath + 'ajax/create-customer/' + cardholderEmail + "/" + paymentMethod + "/" + PlanId, { method: 'post', headers: { 'Content-Type': 'application/json; charset=utf-8' }, .then(response => { return response.json(); }) And my controller [HttpPost, Route("ajax/create-customer/{email}/{paymentmethod}/{planid}")] public JsonResult CreateCustomer(string email, string paymentmethod, string planid) { ...etc }

Continue reading...
 
Status
Not open for further replies.
Top