I have a situation where I need to pass a list of objects to an MVC controller, but I'm not sure how to format this in querystring. The reason I would like to do this is because it is not a web application, it is a web service that receives data through a request and directs it to a controller that does this work.
So, given the class MyParam with properties A and B, how can I build a query that will pass data to the next controller method:
public ActionResult MyMethod(List<MyParam> ParamList)
I tried using the MVC environment for RedirectToAction and RedirectToResult to understand what this is connected with, but I assume that my n00bness with MVC makes me wrong, because it never passes the data correctly, and MyMethod always is null for the parameter.
Thanks in advance!
source share