public static IHtmlString ShowSpeakerLinks(this HtmlHelper htmlHelper, SpeakerListModel model) { var zeigen= htmlHelper.ActionLink("Zeigen", "Details", "Speaker", new { id = model.Id }, null); var sessions = htmlHelper.ActionLink("Sessions", "List", "SpeakerSession", new { speakerid = model.Id }, null); return new HtmlString(string.Format("{0} | {1}",zeigen,sessions)); }
public static IHtmlString ShowSpeaker(this HtmlHelper htmlHelper, string caption, SpeakerListModel model) { return htmlHelper.ActionLink(caption, "Details", "Speaker", new { id = model.Id }, null); }