public ActionResult AddEmployee() { Department dp = new Models.Department(); ViewBag.depid = dp.all(); Designation dsg = new Designation(); ViewBag.ddddd = dsg.all(); return(View()); }
public ActionResult UpdateEmployee(int a) { Employee em = new Models.Employee(); Department dp = new Models.Department(); ViewBag.depp = dp.all(); Designation dsg = new Models.Designation(); ViewBag.dd = dsg.all(); em.E_ID = a; em.search(); return(View(em)); }
public ActionResult Department() { Department d = new Models.Department(); return(View(d.all())); }