Exemple #1
0
        public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
        {
            var blob = await _imageApiService.GetPerfumeImagePathAsync(Id);

            string html = string.Empty;

            html = $"<img src='{blob}' style='width: 50px; height: 50px; border-radius:50%; border:1px solid #999;  object-fit:cover; object-position: 50% 1%;'/>";

            output.Content.SetHtmlContent(html);
        }
Exemple #2
0
        public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
        {
            var blob = await _imageApiService.GetPerfumeImagePathAsync(Id);

            string html = string.Empty;

            html = $"<img src='{blob}' class='card-img-top'/>";

            output.Content.SetHtmlContent(html);
        }