Tried a lot of solutions to pass an object from Angular4 service to c# controller. Although I do have the object received in service, does not bind to c# controller and so, I receive null.
Angular service:
getShedule(payload: any) { this._http.post("Shedule/GetSchedule", payload) .map(res => res.json()).subscribe((x) => { console.log("callback succes"); }); } C# controller:
[HttpPost] public void GetSchedule(object priceScheduleObject) { //logic here } Any help is welcome.
payloadobject look like? Have you verified that it isn't null?