Beispiel #1
0
        public void AddClientCard(ClientCardBL cardBL)
        {
            var card = new ClientCard()
            {
                FirstName = cardBL.FirstName,
                LastName  = cardBL.LastName,
                Telephone = cardBL.Telephone
            };

            clientCardRepozitory.AddClient(card);
        }
Beispiel #2
0
        public List <ClientCardBL> GetClientCards()
        {
            var listBL    = new List <ClientCardBL>();
            var listCards = clientCardRepozitory.GetClientCards();

            foreach (var c in listCards)
            {
                var clientCardBL = new ClientCardBL()
                {
                    ID        = c.ID,
                    FirstName = c.FirstName,
                    LastName  = c.LastName,
                    Telephone = c.Telephone
                };
                listBL.Add(clientCardBL);
            }
            return(listBL);
        }