예제 #1
0
    public void UpdateRep(WCFRep r)
    {
        Employee e = new Employee
        {
            EmployeeID     = r.EmployeeID,
            Name           = r.Name,
            DepartmentCode = r.DepartmentCode,
        };

        Data.UpdateRep(e);
    }
예제 #2
0
    public WCFRep[] ListRep(string depCode)
    {
        List <WCFRep> l = new List <WCFRep>();

        foreach (Employee c in Data.R_EmployeeList(depCode))
        {
            WCFRep w = WCFRep.Make(c.EmployeeID, c.Name, c.DepartmentCode);
            l.Add(w);
        }
        return(l.ToArray <WCFRep>());
    }