public ActionResult Add(Employee emp) { if (ModelState.IsValid) { repo.AddEmployee(emp); return(RedirectToAction("Index")); } return(View(emp)); }
public ActionResult Add(Employee emp) { if (ModelState.IsValid) { repo.AddEmployee(emp); return(RedirectToAction("Index")); } return(View(emp)); }