No exception is thrown, function just halts at this statement:
int productQuantity = Convert.ToInt32(\"1.00\");
and returns.
What
You need to convert it to a double first, and then convert to Int32.
double
Int32
int productQuantity = Convert.ToInt32(double.Parse("1.00"));