Example #1
0
        public ActionResult AddMgr(String Name, double Salary, String Dept, int Reports, double BonPerRept)
        {
            localhost.Employees eMP = new localhost.Employees();
            int ID = eMP.AddEmployee(Name, Salary, Dept);

            eMP.AddManager(ID, Reports, BonPerRept);
            return(RedirectToAction("getEmp", new { id = ID }));
        }