Mandar Shinde

Mandar Shinde

  • NA
  • 423
  • 114.7k

Regarding Multiple Get Or Post using Single API

Mar 11 2019 9:26 AM
Dear All,
I am beginner in  ASP .net MVC and Angular 5.
I was trying to call multiple htttp get using Angular 5  to Single API controller of MVC.
But I am getting Error status code of 400.
When I am trying to change signature even at that time I am getting same Error.
 
 I have following Http Get Methods :-
 
 
  1. public List<Student> GetStudentList(int studentID)  
  2.   return _libraryRepository.GetStudentList(studentID);  
  3. }  
  4.   
  5. public List<Teacher> GetteacherList(int teacherID)  
  6. {
  7.   return _libraryRepository.GetTeachertList(teacherID);  
  8. }
along with tath I want to call some more Get with paramter or without parameter.
 
Please help me to overcome this problem.
 
Thanking You in advance. 

Answers (2)