Ejemplo n.º 1
0
 public ActionResult Add(Manager manager)
 {
     if (ModelState.IsValid)
     {
         manager.mana_time = DateTime.Now;
         mb.Add(manager);
         return(Content("<script>alert('添加成功!');window.open('" + Url.Action("Index1", "Manager") + "','_self');</script>"));
     }
     return(View(manager));
 }