public List<Employee> Get()
 {
     var ops = new EmployeeDirectoryOperations();
     var response = ops.ListAllEmployees();
     var list = response.Data;
     return list;
 }
示例#2
0
 public void ListAllEmployeesTest()
 {
     var ops = new EmployeeDirectoryOperations();
     var response = ops.ListAllEmployees();
     Assert.IsTrue(response.Success);
     Assert.AreEqual(17, response.Data.Count);
 }
 public List<Employee> Get(int id)
 {
     var ops = new EmployeeDirectoryOperations();
     var response = ops.GetEmpByDptID(id);
     var list = response.Data;
     
     return list;
 }
 public void Put(Employee employee)
 {
     var ops = new EmployeeDirectoryOperations();
     ops.UpdateEmployee(employee);
 }
 public void Delete(int id)
 {
     var ops = new EmployeeDirectoryOperations();
     ops.DeleteEmpById(id);
 }
 public Employee Get(int id)
 {
     var ops = new EmployeeDirectoryOperations();
     var employee = ops.GetEmpById(id);
     return employee;
 }