Skip to content
Loading
  • Sanwar Ranwa
    +2
    Hello Mandar
     
    Yes you can write multiple get and post in single method  
     
    Check these Links 
     
    https://stackoverflow.com/questions/11407267/multiple-httppost-method-in-web-api-controller
     
    https://forums.asp.net/t/1815996.aspx?Web+Api+with+Multiple+Post+in+one+Controller
     
    https://www.codeproject.com/Tips/1105755/ASP-NET-Core-Web-API-Multiple-Get-or-Post-Methods
     
    https://forums.asp.net/t/1975469.aspx?MVC+web+API+with+more+then+one+Get+method+with+same+number+of+parameters+
     
    https://www.ryadel.com/en/asp-net-mvc-fix-ambiguous-action-methods-errors-multiple-action-methods-action-name-c-sharp-core/
    +2
  • +1
    Sanwar sir,
    How can I use multiple Http get in single API controller like as follows :-
     
    public List GetStudent(int ID,string Name) 
    {
     
    } 
     
    and
    public List GetTeacher(int ID, string Name) 
    {
     
    } 
    +1
  • 0
    Hello Sanwar sir,
    Will you tell me how can I return Datatable from MVC To Angular 5.
    Thank you for reply. 
    0