ho qualche metodoCome passare valore enum in @ Html.ActionLink
public ActionResult ExportToCSV(CellSeparators cellSeparator)
{
//
}
public enum CellSeparators
{
Semicolon,
Comma
}
Come si può fare riferimento a tale metodo correttamente in html?
@Html.ActionLink("Exportar al CSV", "ExportToCSV", new { ?? })
Grazie!
Grazie! Il tuo approccio sta funzionando. –
Anche RouteValueDictionary http://stackoverflow.com/questions/3976371/pass-collection-of-enums-to-asp-net-mvc-actionmethod –