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

}
}

ChangeImage(currentImage))"/>

ChangeImage(currentImage))"/>
@for (var i = 0; i < Products[currentProduct].ImagesUrls.Length && i < 3; i++) {
var dotIndex = i;
ChangeImageDot(dotIndex))">
}
@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) {

continue;
}
if(fractal != 0.0) {

fractal -= fractal;
}
else {

}
}
if(!isProductsNull) {
isProductsNull = true;
StateHasChanged();
}
}
else {
if(isProductsNull) {
isProductsNull = false;
StateHasChanged();
}
}