I'm trying to bind a prefix to a complex type... any idea how?
e.g.
instead of this...
public ActionResult Index([Bind(Prefix = "ids[]")] IList<long> ids)
{
...
}
i want to
public ActionResult Index(ComplexModel model)
{
...
}
where the model is something like
public class ComplexModel
{
[Bind(Prefix = "ids[]")] // <----- this is not allowed
public IList<long> ids { get; set;}
}
Any idea how?
Thanks.