public static MvcHtmlString YouTubeVideo(this HtmlHelper helper, YouTubeVideo video, string widthFactor, double aspect, string cssClass, int containerSize) { using (new Tracer(helper, video, widthFactor, aspect, cssClass, containerSize)) { if (video == null || string.IsNullOrEmpty(video.YouTubeId)) { return(MvcHtmlString.Empty); } return(new MvcHtmlString(video.ToHtml(widthFactor, aspect, cssClass, containerSize))); } }