Example #1
0
        public static WCFRep Make(int employeeID, string name, string departmentCode)
        {
            WCFRep c = new WCFRep();

            c.employeeID     = employeeID;
            c.name           = name;
            c.departmentCode = departmentCode;
            return(c);
        }
Example #2
0
        public void UpdateRep(WCFRep r)
        {
            Employee e = new Employee
            {
                EmployeeID     = r.EmployeeID,
                Name           = r.Name,
                DepartmentCode = r.DepartmentCode,
            };

            Data.UpdateRep(e);
        }
Example #3
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>());
        }