How to display data using card with foreach.Please check this link
https://getbootstrap.com/docs/4.1/components/card/
and this is my code
@foreach (var blogPost in Model.Items)
{
@if (blogPost.ThumbnailImageAsset != null)
{
} else
{

}
}
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sachin SinghRank #66 · 26.2K reputationPosted May 14, 2021, 12:17 PM EDT
Varun SetiaRank #308 · 8.2K reputationPosted May 14, 2021, 3:23 PM EDT