常用方法
常用方法
常用方法
常用方法
public ActionResult Add(Employee employee) { if (!ModelState.IsValid) { return(View()); } empService.AddEmployee(employee); return(RedirectToAction("Index")); }
public ActionResult Add(Employee employee) { if (!ModelState.IsValid) { return(View()); } empService.AddEmployee(employee); return(RedirectToAction("Index")); }