I have a javascript variable, output. I have a model variable (which is a List<String> dates). How can I add output to List<string> dates?
In c# i would do something like so:
dates.Add(output);
But @Model.dates.Add(output); throws an error, because while in the @ it does not recognize javascript variables. How can I escape the @ to reference a javascript variable and then finish the statement?