1

Closed

“anonymous type” parameter in T4MVC Actionresult

description

I have an action result defined this way :
public virtual JsonResult Created(string tableName, object where)
    {
       ....some code
    }
I am using T4MVC and I am trying to call the action result like this:
MVC.MyController.Created("MyTable", new { Name = "Matt", Age = 11})
But in the controller the where parameter has a type of object {string[]} and it has only one entry and that one looks like this:
where[0]="{ Name = "Matt", Age = 11 }"
If I call the Action result like this:
new MyController().Created("MyTable", new { Name = "Matt", Age = 11})
the where parameter is an anonymous type in the controller, like it should be , not an object {string[]}
Closed Jan 28, 2015 at 3:10 PM by KevinKuszyk
As part of our move to GitHub, we are closing all the outstanding issues on CodePlex.

If your issue is still valid, please re-open it on GitHub:
https://github.com/T4MVC/T4MVC/issues

Thanks for contributing!