Exemplo n.º 1
0
    public WCF_RMessage appointNewRepresentativeMobile(String EmployeeID, String DepartmentID)
    {
        appointRepresentativeController = new AppointRepresentativeController();
        WCF_RMessage req = new WCF_RMessage(appointRepresentativeController.appointNewRepresentativeMobile(EmployeeID, DepartmentID));

        return(req);
    }
Exemplo n.º 2
0
    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));
    }
Exemplo n.º 3
0
    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);
    }