public ActionResult Add(sysUserInfo model) { if (model != null) { model.uCreateTime = DateTime.Now; model.uLastErrTime = DateTime.Now; model.uUpdateTime = DateTime.Now; UserInfoService.Add(model); UserInfoService.SaverChanges(); return(Content("<script type='text/javascript'>alert('恭喜!添加成功└(^o^)┘!');window.parent.location.reload();parent.layer.close(index);</script>")); } else { return(Content("<script type='text/javascript'>alert('好像哪里出错 了,咋办 ╮(╯_╰)╭!');;</script>")); } }