Exemplo n.º 1
0
 public BE.ClientCardInfo GetByClientGuid(Guid clientGuid)
 {
     DA.ClientCardInfoGateway gateway = new DA.ClientCardInfoGateway();
     var clientCardInfo = gateway.GetByClientGuid(clientGuid);
     if (clientCardInfo == null)
         return null;
     BE.ClientCardInfo result = new BE.ClientCardInfo();
     result = clientCardInfo.ToBusinessEntity();
     return result;
 }
Exemplo n.º 2
0
        public static BE.ClientCardInfo ToBusinessEntity(this DA.ClientCardInfo daClientCardInfo)
        {
            BE.ClientCardInfo clientCardInfoResult = new BE.ClientCardInfo()
            {
                ClientCardGuid = daClientCardInfo.ClientCardGuid,
                ClientGuid = daClientCardInfo.ClientGuid,
                CardType = daClientCardInfo.Cardtype,
                CardNumber=daClientCardInfo.CardNumber,
                CvvNumber=daClientCardInfo.CvvNumber,
                CardHolderNameOnCard=daClientCardInfo.CardHolderNameOnCard,
                ExpMonth = daClientCardInfo.ExpMonth,
                ExpYear=daClientCardInfo.ExpYear

            };

            return clientCardInfoResult;
        }