Example #1
0
        public ActionResult EmployeeBlList()
        {
            BL.EmployeeBL      empBL     = new BL.EmployeeBL();
            List <BL.Employee> employees = empBL.Employees.ToList();

            return(View(employees));
        }
Example #2
0
        public ActionResult Create(BL.Employee employee)
        {
            if (ModelState.IsValid)
            {
                BL.EmployeeBL employeeBL = new BL.EmployeeBL();

                employeeBL.AddEmmployee(employee);
                return(RedirectToAction("EmployeeBlList"));
            }
            return(View());
        }