public List<string> GetAllCities()
        {
            var listOfCities = new List<string>();

            var repo = new EmployeeRepository();

            var employees = repo.GetAll();

            foreach (var emp in employees)
            {
                listOfCities.Add(emp.City);
            }

            return listOfCities;
        }
Exemplo n.º 2
0
 public HomeController()
 {
     repo = new EmployeeRepository();
 }