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); }
public void UpdateRep(WCFRep r) { Employee e = new Employee { EmployeeID = r.EmployeeID, Name = r.Name, DepartmentCode = r.DepartmentCode, }; Data.UpdateRep(e); }
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>()); }