public ActionResult SubmitForm(ClientEntity clientEntity, string keyValue) { if (string.IsNullOrEmpty(keyValue) || clientEntity.passWord.Length < 30) { clientEntity.passWord = ApiHelper.MD5Encrypt(clientEntity.passWord, "MD5"); } clientApp.InsertAndUpdate(clientEntity, keyValue); return(Success("操作成功。")); }