예제 #1
0
        private Client CreateClient(Data.ClientInfo client)
        {
            if (client == null)
            {
                return(null);
            }

            return(new Client()
            {
                ClientID = client.ClientID,
                UserName = client.UserName,
                LName = client.LName,
                FName = client.FName,
                Email = client.Email,
                Phone = client.Phone
            });
        }
예제 #2
0
        private Purchaser CreatePurchaser(Ordering.Purchaser purchaser, Data.ClientInfo client)
        {
            if (purchaser == null || client == null)
            {
                return(null);
            }

            return(new Purchaser()
            {
                PurchaserID = purchaser.PurchaserID,
                ClientID = client.ClientID,
                UserName = client.UserName,
                LName = client.LName,
                FName = client.FName,
                Email = client.Email,
                Phone = client.Phone,
                Active = purchaser.Active,
                Deleted = purchaser.Deleted
            });
        }