public async Task <IActionResult> GlobalPay() { //do not declare any method parameters, you will neeed to read the request body as a string var notificationBody = await Request.ReadBodyAsStringAsync(); //the notification processor will examine the json string and provide deserialization var httpResult = await _notificationProcessor.ProcessNotificationBodyAsync(notificationBody); return(StatusCode((int)httpResult)); }
public async Task <IHttpActionResult> GlobalPay() { //do not declare any method parameters, you will neeed to read the request body as a string var notificationBody = await Request.Content.ReadAsStringAsync(); //the notification processor will examine the json string and provide deserialization var httpResult = await _notificationProcessor.ProcessNotificationBodyAsync(notificationBody); return(ResponseMessage(Request.CreateResponse(httpResult))); }