Exemplo n.º 1
0
        public ActionResult AddEmployee()
        {
            Department dp = new Models.Department();

            ViewBag.depid = dp.all();
            Designation dsg = new Designation();

            ViewBag.ddddd = dsg.all();
            return(View());
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        public ActionResult Department()
        {
            Department d = new Models.Department();

            return(View(d.all()));
        }