Exemplo n.º 1
0
 public ActionResult CheckName(string username)
 {
     if (svc.UserNameExsist(username))
     {
         return(JqRemoteValidation.Invalid("用户名已被使用"));
     }
     else
     {
         return(JqRemoteValidation.Valid());
     }
 }
 public ActionResult CheckDictionaryCode(string code)
 {
     if (svc.DictionaryCodeExsist(code))
     {
         return(JqRemoteValidation.Invalid("字典编号已存在"));
     }
     else
     {
         return(JqRemoteValidation.Valid());
     }
 }