Example #1
0
 public Employee GetById(int id)
 {
     using(var employeesDa = new EmployeesDA())
     {
         return employeesDa.GetById(id);
     }
 }
Example #2
0
 public IEnumerable<Employee> GetAll()
 {
     using(var employeesDa = new EmployeesDA())
     {
         return employeesDa.GetAll();
     }
 }