TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mandar Shinde
NA
423
114.9k
Regarding multiple array passing to single method.
Apr 22 2019 7:05 AM
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
}
I was unable to call that function.
Please let me know how can I overcome on above problem.
Thanking You in advance.
Reply
Answers (
2
)
Swagger custom route in Asp.net web api
How to fix my search using a select that is populated razor