/* public EmployeeController(PeopleProRepo peopleProRepo) * { * this.peopleProRepo = peopleProRepo; * } */ // GET: Employee public ActionResult Index() { IEnumerable <Employee> employees = m_repo.GetAllEmployees(); if (!employees.Any()) { //If there are no buildings, we should provide the ability to create them? return(RedirectToAction("Create")); } //paginate buildings, what if there are 10000, do we want the user to scroll through all of that? //look up IPagedList<T> return(View(employees.ToList())); }
/* public EmployeesTestController(PeopleProRepo peopleProRepo) * { * * this.peopleProRepo = peopleProRepo; * } */ // GET: EmployeesTest public ActionResult Index() { //var cheating = new PeopleProRepo(); IEnumerable <Employee> employees = m_repo.GetAllEmployees(); // var employees = m_repo.GetAllEmployees(); return(View(employees.ToList())); }