Let' suppose that I have a model called Person:
public class Person
{
public string Name {get; set; }
public List<string> Hobbies {get; set;}
}
I would like to create a View using an item Person as a Model, and editing it.
I cannot find examples on how to tie a grid to the list of hobbies, and on how to update the model back to the server with an HttpPost. Obviously the user should be able to add, modify and delete hobbies in the grid...
Thanks
public class Person
{
public string Name {get; set; }
public List<string> Hobbies {get; set;}
}
I would like to create a View using an item Person as a Model, and editing it.
I cannot find examples on how to tie a grid to the list of hobbies, and on how to update the model back to the server with an HttpPost. Obviously the user should be able to add, modify and delete hobbies in the grid...
Thanks