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

            c.storeStaffID = storeStaffID;
            c.name         = name;
            c.phone        = phone;
            return(c);
        }
Exemplo n.º 2
0
        public WCFClerkLogIn[] ListClerkLogIn()
        {
            List <WCFClerkLogIn> l = new List <WCFClerkLogIn>();

            foreach (StoreStaff c in Data.ClerkLogIn())
            {
                WCFClerkLogIn w = WCFClerkLogIn.Make(c.StoreStaffID, c.Name, c.PhoneNumber);
                l.Add(w);
            }
            return(l.ToArray <WCFClerkLogIn>());
        }