Ejemplo n.º 1
0
        public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
        {
            string html = string.Empty;
            var    blob = await _imageApiService.GetBlogImageByIdAsync(Id);

            if (BlogImageType == BlogImageType.BlogHome)
            {
                html = $"<img class='card-img-top' src='{blob}'> ";
            }
            else
            {
                html = $"<img class='img-fluid rounded' src='{blob}'> ";
            }
            output.Content.SetHtmlContent(html);
        }
Ejemplo n.º 2
0
        public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
        {
            var blob = await _imageApiService.GetBlogImageByIdAsync(Id);

            string html = string.Empty;

            if (BlogImageType == BlogImageType.BlogHome || BlogImageType == BlogImageType.BlogDetail)
            {
                html = $"<img class='card-img-top' src='{blob}'>";
            }
            else
            {
                html = $"<img class='w-100' sytle='height:10rem!important;' src='{blob}'";
            }


            output.Content.SetHtmlContent(html);
        }