Given a URL:
http://www.stackoverflow.com/question?ask=123&answers=5
and its corresponding ActionMethod and Model:
public ActionResult Question(RequestObject request)
{
return View("Question", request);
}
public class RequestObject
{
public string AskId
{
get;
set;
}
public string NumberOfAnswers
{
get;
set;
}
}
Notice that the QueryString and the parameters of the RequestObject are different. Can I achieve that with the default binding behavior? Do I need to create a custom binder?
Thanks!