我有一个这样的ApiController: public Book Get(int booksn=-1, string author="") /* search for books matching the parameters */}
所有参数都有默认值,一个空的搜索请求将返回所有内容。现在,我的问题是,如果请求包含其他参数(例如
我确信我已经在另一个解决方案中做到了这一点,但我似乎找不到任何解决方案来重新做一次,我想知道是否有人可以帮助我……public class WebController :ApiController public void Get(string telephone, string postcode, List<Client> clients){
} function Client(nam