예제 #1
0
파일: oEmbedApi.cs 프로젝트: Geta/oEmbed
 public static oEmbedResponse Call(oEmbedBlock options)
 {
     return Call(new oEmbedOptions
     {
         Url = options.Url,
         MaxHeight = options.MaxHeight,
         MaxWidth = options.MaxWidth
     });
 }
예제 #2
0
 public static oEmbedResponse Call(oEmbedBlock options)
 {
     return(Call(new oEmbedOptions
     {
         Url = options.Url,
         MaxHeight = options.MaxHeight,
         MaxWidth = options.MaxWidth
     }));
 }
예제 #3
0
        // 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);
        }
예제 #4
0
        // 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));
        }