I have a model with a collection
public class Model
{
IEnumerable<ModelPart> Parts {get;set;}
}
public class Parts
{
public string Prop1 {get;set;}
public string Prop2 {get;set;}
}
But the comming in url is quite nasty.
It has this form
dhxGridObj_d3BIc6JfDidc_1_0=&dhxGridObj_d3BIc6JfDidc_1_1=sssss&dhxGridObj_d3BIc6JfDidc_1_2=ssssss& dhxGridObj_d3BIc6JfDidc_2_0=&dhxGridObj_d3BIc6JfDidc_2_1=aaaa&dhxGridObj_d3BIc6JfDidc_2_2=aaaaa
It has three parts separated with underscore
dhxGridObj_d3BIc6JfDidc_2_1
- Some id
dhxGridObj_d3BIc6JfDidc - Row id
2 - Cell id
1
I'm wondering what would be the best way bind this to my model.
I was thinking of renaming this dhxGridObj_d3BIc6JfDidc_2_1 to model[2].Prop1 Where would be the best place to do this ?