public WCF_RMessage appointNewRepresentativeMobile(String EmployeeID, String DepartmentID) { appointRepresentativeController = new AppointRepresentativeController(); WCF_RMessage req = new WCF_RMessage(appointRepresentativeController.appointNewRepresentativeMobile(EmployeeID, DepartmentID)); return(req); }
public WCF_Employee GetRepresentative(string DepartmentID) { appointRepresentativeController = new AppointRepresentativeController(); Employee emp = appointRepresentativeController.getRepresentative(DepartmentID); return(new WCF_Employee((int)emp.EmployeeID, emp.EmployeeName, emp.EmployeePassword, emp.EmployeeContactNo, emp.EmployeeEmail, emp.EmployeeAddress, (int)emp.RoleID, emp.DepartmentID)); }
public List <WCF_Employee> GetEmployeeNameListForAppointment(String DepartmentID) { appointRepresentativeController = new AppointRepresentativeController(); List <WCF_Employee> eWCFList = new List <WCF_Employee>(); List <Employee> eList = appointRepresentativeController.getEmployeeList(DepartmentID); foreach (Employee emp in eList) { eWCFList.Add(new WCF_Employee((int)emp.EmployeeID, emp.EmployeeName, emp.EmployeePassword, emp.EmployeeContactNo, emp.EmployeeEmail, emp.EmployeeAddress, (int)emp.RoleID, emp.DepartmentID)); } return(eWCFList); }