Beispiel #1
0
        public static List <Employee> GetEmployees()
        {
            List <Employee> employeesList = new List <Employee>();

            try
            {
                DBServiceClient dws = new DBServiceClient();
                employeesList = dws.GetEmployees();
                dws.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            return(employeesList);
        }