Ejemplo n.º 1
0
        public ActionResult Add(UserInfo userinfo)
        {
            short Delfalg = (short)XS.OA.Model.Enum.DelflagEnum.Normal;

            userinfo.ModfiedOn = DateTime.Now;
            userinfo.SubTime   = DateTime.Now;
            userinfo.DelFalg   = Delfalg;
            bll.Add(userinfo);
            return(Content("success"));
        }
Ejemplo n.º 2
0
 public ActionResult Register(UserInfo userinfo)
 {
     if (ModelState.IsValid)
     {
         iuserbll.Add(userinfo);
         return(Content("<script>alert('用户注册成功!');window.open('" + Url.Content("~/Home/Index") + "', '_self')</script>"));
     }
     else
     {
         return(Content("<script>;alert('注册失败!');window.open('" + Url.Content("~/User/Register") + "', '_self')</script>"));
     }
 }