Calling another Web API controller directly from inside another Web API controller

后端 未结 3 1021
死守一世寂寞
死守一世寂寞 2021-02-04 13:38

Given a controller Proxy and an action of GetInformation. I want to be able to call the method GetInformation of the Users c

3条回答
  •  滥情空心
    2021-02-04 14:40

    Another way can be:

    IQueryable GetInformation()
    

    without using the IHttpActionResult return type. Your method will still remain an Http GET method and then call it in the same way as you call any class method.

提交回复
热议问题