I've been messing around with a web api, but I need a GET method that reads an incoming dto so it can use multiple parameters in its search. Basically something like this:
[HttpGet("{AccountDTO}")] public string Get(AccountDTO dto) { // Parse the dto, then do stuff return "Hit it"; }
Anyone know how to do this? The DTO has four properties, so I thought it would work just calling
It does not... Any links to tutorials are greatly appreciated as the official one is still rather thin.
TIA!
Dennis