<BSCarousel NumberOfItems="@items.Count">
    <BSCarouselIndicators />
    <div class="carousel-inner">
        @for (int i = 0; i < items.Count; i++)
        {
        <BSCarouselItem src="@items[i].Source" alt="@items[i].Alt" ActionLink="@items[i].ActionLink" ActionLinkTarget="@items[i].ActionLinkTarget" />
        }
    </div>
    <BSCarouselControl CarouselDirection="CarouselDirection.Previous" />
    <BSCarouselControl CarouselDirection="CarouselDirection.Next" />
</BSCarousel>

@code {
    int i = 0;
