Esempio n. 1
0
 public static int Add(M_AdminInfo model)
 {
     model.AdminName = model.AdminName.Replace(" ", "");
     if (!SafeSC.CheckUName(model.AdminName))
     {
         throw new Exception("用户名含有非法字符!!");
     }
     return(DBCenter.Insert(model));
 }