public ActionResult EmployeeBlList() { BL.EmployeeBL empBL = new BL.EmployeeBL(); List <BL.Employee> employees = empBL.Employees.ToList(); return(View(employees)); }
public ActionResult Create(BL.Employee employee) { if (ModelState.IsValid) { BL.EmployeeBL employeeBL = new BL.EmployeeBL(); employeeBL.AddEmmployee(employee); return(RedirectToAction("EmployeeBlList")); } return(View()); }