示例#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);
        }