public static MvcHtmlString ActionLink(this HtmlHelper helper, Webcast w) { string id = w == null ? "" : w.Base64Key; HttpRequestBase request = helper.ViewContext.RequestContext.HttpContext.Request; return helper.ActionLink(w.Title, "play", "webcast", request.Url.Scheme, request.Url.Host, null, new { id = id, area = "CNTV" }, new { target = "_video" }); }
public static string Action(this UrlHelper helper, Webcast w) { if (w == null) return ""; HttpRequestBase request = helper.RequestContext.HttpContext.Request; return helper.Action("play", "webcast", new RouteValueDictionary(new { id = w.Base64Key, area = "CNTV" })); }
public WebcastDocument(Webcast w) { this.w = w; Title = string.Format("{0} {1}", w.Feature.Title, w.Title); }