Example #1
0
 private void RebuildList()
 {
     lbEmployees.Items.Clear();
     _employeeFacade.GetAllEmployees()
     .Where(employee =>
            employee.ToString().ToLower().Contains(tbFilter.Text.ToLower()))
     .OrderBy(employee => employee.ToString())
     .ToList()
     .ForEach(employee => lbEmployees.Items.Add(employee));
 }
        public string GetAllEmployees()
        {
            var result = _facade.GetAllEmployees();

            return(ConvertList(result));
        }