I have the following class:
public class Movie
{
string Name get; set;
string Director get; set;
IList<String> Tags get; set;
}
How do I bind the tags properties? to a simple imput text, separated by commas. But only to the controller I’am codding, no for the hole application.
Thanks
You could start with writing a custom model binder:
and then applying it to a particular controller action which is supposed to receive the input:
Now when you send the following GET request:
Or POST request with an HTML
<form>:The
Moviemodel should be bound correctly in the controller action and only inside this controller action.