public string SaveErrorSub(string name, string phone, string email) { string ret = ""; PhoneValidator pv = new PhoneValidator(); phone = bll.FormatPhoneNumber(phone); if (!pv.PhoneNumbersOk(phone)) { ret = "Please Enter a valid Phone Number"; } else if (!bll.IsValidEmailAddress(email)) { ret = "Please Enter a valid Email Address"; } else if (bll.IsSubEmail(email)) { ret = "Email is already subscribed"; } else if (bll.IsSubPhone(phone)) { ret = "Phone is already subscribed"; } else { datafile.SaveErrorSub(name, phone, email); ret = "Subscriber Saved Successfully"; } return(ret); }