@page "/cards/{wishlistName}/{chatId}" @inject NavigationManager navigationManager;

@wishlistName

@if (Products != null && Products.Count != 0 && currentProduct != Products.Count && currentProduct >= 0) {
@if(Products[currentProduct].ImagesUrls.Length > 0) { @for(int i = 0; i < Products[currentProduct].ImagesUrls.Length && i < 3; i++) { string image = Products[currentProduct].ImagesUrls[i]; if (currentImage == image) { product image } } next image previous image } else { product image }
@for (var i = 0; i < Products[currentProduct].ImagesUrls.Length && i < 3; i++) { var dotIndex = i;
}

@Products[currentProduct].Name

@Products[currentProduct].Description

@{ int whole = (int)Math.Floor(Products[currentProduct].Rating); double fractal = Products[currentProduct].Rating - whole; } @for(int i = 0; i < 5; i++) { if(i < whole) { star continue; } if(fractal != 0.0) { star fractal -= fractal; } else { star } }
@{ string[] type = {"cancel", "like"}; }
} else {
}
@code { [Parameter] public string wishlistName { get; set; } [Parameter] public string chatId {get; set;} private void NavigateToMain() { navigationManager.NavigateTo($"/chat/{chatId}"); } }