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>()); }