So basically I have this piece of code and I want to add a validation that returns the user a warning if he enters a string instead of an integer. Any help would be appreciated 
Console.WriteLine("Rating " + (i + 1) + " : ");
int ratings;
do
{
ratings = Convert.ToInt32(Console.ReadLine());
if (ratings < 1 || ratings > 5)
{
Console.WriteLine("Rating entered is not within range. Please enter a number between 1 and 5");
}
} while (ratings < 1 || ratings > 5 );
ratingsList = ratings;
}
break;
Console.WriteLine("Rating " + (i + 1) + " : ");
int ratings;
do
{
ratings = Convert.ToInt32(Console.ReadLine());
if (ratings < 1 || ratings > 5)
{
Console.WriteLine("Rating entered is not within range. Please enter a number between 1 and 5");
}
} while (ratings < 1 || ratings > 5 );
ratingsList = ratings;
}
break;