Within a view model, I have the following list:
public List<Foo> ListOfFoos { get; set; }
The class Foo
has the following properties:
public int id {get; set;}
public string name {get; set;}
public int number {get; set;}
I can output each Foo
object in the ListOfFoos
property using a foreach
loop. I would like to be able to submit edited values upon submission of the form.
Is there a way to do this? Will the new values simply be stored within the ListOfFoos
list?