public static oEmbedResponse Call(oEmbedBlock options) { return Call(new oEmbedOptions { Url = options.Url, MaxHeight = options.MaxHeight, MaxWidth = options.MaxWidth }); }
public static oEmbedResponse Call(oEmbedBlock options) { return(Call(new oEmbedOptions { Url = options.Url, MaxHeight = options.MaxHeight, MaxWidth = options.MaxWidth })); }
// ReSharper disable once InconsistentNaming public static MvcHtmlString oEmbed(this HtmlHelper html, oEmbedBlock oEmbedBlock) { var oEmbedResponse = oEmbedApi.Call(oEmbedBlock); var markup = string.Empty; if (oEmbedResponse != null) { markup = oEmbedResponse.RenderMarkup(); } return new MvcHtmlString(markup); }
// ReSharper disable once InconsistentNaming public static MvcHtmlString oEmbed(this HtmlHelper html, oEmbedBlock oEmbedBlock) { var oEmbedResponse = oEmbedApi.Call(oEmbedBlock); var markup = string.Empty; if (oEmbedResponse != null) { markup = oEmbedResponse.RenderMarkup(); } return(new MvcHtmlString(markup)); }