Ich habe eine MethodeWie Enum-Wert in @ Html.ActionLink
public ActionResult ExportToCSV(CellSeparators cellSeparator)
{
//
}
public enum CellSeparators
{
Semicolon,
Comma
}
passieren Wie wir zu dieser Methode korrekt in HTML verweisen?
@Html.ActionLink("Exportar al CSV", "ExportToCSV", new { ?? })
Vielen Dank!
Vielen Dank! Dein Ansatz funktioniert. –
Auch RouteValueDictionary http://stackoverflow.com/questions/3976371/pass-collection-of-enums-to-asp-net-mvc-actionmethod –