How to implement Search with multiple parameters in web Api using asp.net core 3.1 RRS feed

  • Question

  • User2065050485 posted

    I am trying to create a business application. There are quite a few good tutorials and videos are available on how to perform CRUD operations in Web Api using asp.net 3.1 .

    I have managed to insert data into the SQL data base (backend) and read data from the database as well. 

    I am unable to implement advance level search for reports with multiple parameters.  

    There are two majors issues 

    1) Routing , how to implement it (my controller has this route defined at the start of the controller 


    2) which Http method should i use , either it should be GET or POST 

    and how to pass multiple parameters to the method.

    3) if i use a query parameter class do i need to create a separate parameter class for each model class in my application. 

    What the industry best practices are  .

    If some one can point  me to a well written tutorial / video or share a working example which covers above questions , i ll be thankful for that help.

    ZIa Ul Hassan

    Friday, June 12, 2020 7:17 PM

All replies

  • User1686398519 posted

    Hi,  zia ul hassan

    For your needs, you can refer to the following links.

    • About Routing: link
    • Pass multiple parameters:link1,link2
    • GET and POST Method:link
    • Insert data into database:link

    Best Regards,


    Monday, June 15, 2020 11:12 AM