Exemplo n.º 1
0
        public static WCFEmployeeLogIn Make(int employeeID, string name, int?phone)
        {
            WCFEmployeeLogIn c = new WCFEmployeeLogIn();

            c.employeeID = employeeID;
            c.name       = name;
            c.phone      = phone;
            return(c);
        }
Exemplo n.º 2
0
        ////////////LogIn
        public WCFEmployeeLogIn[] ListEmployeeLogIn()
        {
            List <WCFEmployeeLogIn> l = new List <WCFEmployeeLogIn>();

            foreach (Employee c in Data.EmployeeLogIn())
            {
                WCFEmployeeLogIn w = WCFEmployeeLogIn.Make(c.EmployeeID, c.Name, c.Phone);
                l.Add(w);
            }
            return(l.ToArray <WCFEmployeeLogIn>());
        }