예제 #1
0
 public void EditEmployee(EmployeeAddress emp)
 {
     this.operation = () =>
     {
         EmplyeeRepopsitory access = new EmplyeeRepopsitory(this.Transaction);
         access.EditEmployee(emp);
     };
     this.Start(false);
 }
예제 #2
0
        private List <Employee> _GetEmployeeData()
        {
            List <Employee> listEmployeeData = new List <Employee>();

            this.operation = () =>
            {
                EmplyeeRepopsitory access = new EmplyeeRepopsitory(this.Transaction);
                listEmployeeData = access.GetEmployeeData();
            };
            this.Start(false);
            return(listEmployeeData);
        }
예제 #3
0
        public EmployeeAddress GetEmployee(int id)
        {
            EmployeeAddress emp = new EmployeeAddress();

            this.operation = () =>
            {
                EmplyeeRepopsitory access = new EmplyeeRepopsitory(this.Transaction);
                emp = access.GetEmployee(id).FirstOrDefault();
            };
            this.Start(false);
            return(emp);
        }
예제 #4
0
        public List <Department> GetDepartments()
        {
            List <Department> departments = new List <Department>();

            this.operation = () =>
            {
                EmplyeeRepopsitory access = new EmplyeeRepopsitory(this.Transaction);
                departments = access.GetDepartments();
            };
            this.Start(false);
            return(departments);
        }