I am working on a web api project (back end) and I am searching for some more optimized way to get multiple parameter from front end. There are numerous ways like
i) name each parameter in action parameter stack
ii) extract from request body like Request.Content.ReadAsStringAsync().Result;
iii) define complex types (model) and use that type to receive values. like MyAction(UserLog log)
I have to create hundreds of functions which may take variable number of parameters. I don't want to use first option above, it is hectic for large data. The second is confusing as no one can predict what to post. The third one forces me to create hundreds of input models. So is there any better way to do so?