You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text;
namespace Swift.API.Common { public static class TPGetStatic {
public static string ReadWebConfig(string key, string defVal) { try { return ConfigurationManager.AppSettings[key].ToString() == null ? defVal : ConfigurationManager.AppSettings[key].ToString(); } catch (Exception ex) { return defVal; } }
public static bool IsValidMobile(string mobile) { if (mobile.Length > 11) { return false; } //var prefix = "010";
//var mobprefix = mobile.Substring(0, 3);
//if (mobprefix != prefix)
//{
// return false;
//}
return true; } } }
|