public ActionResult Edit(int id) { var bal = new EmployeeBAL(); var model = new EmployeeModel(); model = bal.DetailByID(id); return(View(model)); }
public ActionResult Search(int id) { if (id != 0) { var bal = new EmployeeBAL(); var model = new EmployeeModel(); model = bal.DetailByID(id); return(View(model)); } else { return(RedirectToAction("Index", "Employee")); } }