public string AddToVisa(string s, string s1)
{
    int num;
    int num1;
    Functions con1 = new Functions();
    SqlConnection con = con1.get();
    if (s.Length != 16)
    {
        return "Wrong Details";
    }
        if (!(int.TryParse(s, out num)) || !(int.TryParse(s1, out num1)))
        {
            return "Wrong Visa Details";
        }
    if (s1.Length != 3)
    {
        return "Wrong Visa Details";
    }
    return "Done";
The function always returns "Wrong Details" (I tried with these values : s: 1234123412341234 , s1: 123) , The problem is from int.TryParse , When I deleted it the function returned "Done", What's the problem with int.TryParse?



