public string Active(string validateText) { var uv = UserValidate.DeserializeFromString(validateText); if (uv != null && uv.Mode == 'a') { uv.User.Role = UserRole.User; uv.User.Save(); Flash.Notice = "用户激活成功"; } else { Flash.Notice = "用户激活失败"; } return(UrlTo <ArticleController>()); }