Esempio n. 1
0
    private int GetOtherPhonesinDetails(string[] OtherPhones, string indicator)
    {
        int x = 0;

        if (indicator.Equals("YES"))
        {
            x = 1;
        }
        int TotalCost = 0;

        for (; x < OtherPhones.Length; x++)
        {
            string Phone       = phone_validator.Format(OtherPhones[x].ToString());
            string NetworkCode = Phone.Substring(1, 3);
            int    Tarrif      = data_file.GetParticularTarrifWithCode(NetworkCode);
            TotalCost += Tarrif;
        }
        return(TotalCost);
    }