I have a bunch of action methods inside my controller each with its own model binded as input parameter es.:
[HttpGet]
public MyActionMethod(MyCustomModel data){
...
}
...
public class MyCustomModel{
public int total {get;set;}
public string description {get;set;}
}
Now if I try to call the method passing the right set of querystring parameters to compose MyCustomModel everything works as expected. If I redirect to the action method from another actionmethod using:
RedirectToAction("MyActionMethod", new { total=10, description="test"});
It also works as expected.
The problem is that I would like to achive some kind of strongly typed redirect something like:
RedirectToAction(c => c.MyActionMethod, new MyCustomModel{total=10, description="test"});
Something similar can be achived using the extension method provided by MvcContrib but unfortunately for some reason the extension can't compose the correct set of parameters in the querystring ending up with an incorrect request.
Any ideas?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)