I have this query in my URL:
example.com/cars?brands=bmw,toyota
I also have this property in my CarController:
[BindProperty(SupportsGet=true)]
public List Brands { get; set; }
But what I get is a list with a single item in it that is bmw,toyota.
How can I tell configure ASP.NET to parse the CSV automatically?
New contributor
AmirMohammad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.