Dear All,
I was developing one component in Angular 5 along with ASP .net MVC using REST API.
My requirement is that I just want to pass some which is stored in array in Angular 5 side which I want to pass to Web API controller.
I was trying with following methods but could not able to point while debugging -
- [HttpPost]
- public void PostStudentTeacher([FromBody]Student objStudent,[FromBody]Teacher objTeacher)
- {
- // Inerting Logic for Both Student and Teacher One After Another
- }
- [HttpPost]
- public void PostStudentTeacher(Student objStudent,Teacher objTeacher)
- {
- // Inerting Logic for Both Student and Teacher One After Another
- }
Please let me know how can I overcome on above problem.
Thanking You in advance.
Piyush PansuriyaPosted Apr 22, 2019, 7:40 AM
Mandar ShindePosted Apr 22, 2019, 7:47 AM