public void EditEmployee(EmployeeAddress emp) { this.operation = () => { EmplyeeRepopsitory access = new EmplyeeRepopsitory(this.Transaction); access.EditEmployee(emp); }; this.Start(false); }
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); }
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); }
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); }