public void Exe()
        {
            EmpRepo         repo = new EmpRepo();
            List <Employee> emps = repo.GetAll();

            Console.Clear();
            Console.WriteLine("Employee List");

            foreach (var items in emps)
            {
                Console.WriteLine(items.EmpId + " " + items.Name + " " + items.PhoneNumber);
            }

            Console.ReadKey();
        }
        private void LoadEmployees()
        {
            var result = _repo.GetAll(txtSearch.Text);

            if (result.HasError)
            {
                MessageBox.Show(result.Message);
                return;
            }

            _currentDatas = result.Data.ToList();

            if (_currentDatas.Any())
            {
                _selectedData = _currentDatas[0];
                this.PopulateData();
            }
            else
            {
                this.New();
            }

            this.RefreshDgv();
        }