- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
// todo '+1' is temporary
private string CorrectPhoneNumber(string phoneNumber, string countryCode = "+1")
{
if (phoneNumber.Substring(0, 1) != "+")
{
return string.Format("{0}{1}", phoneNumber.Length == 10 ? countryCode : "+", phoneNumber);
}
return phoneNumber;
}
Комментарии (10) RSS
Добавить комментарий