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;
 }
 public void UpdateClientCardInfo(BE.ClientCardInfo entity)
 {
     DA.ClientCardInfoGateway gateway = new DA.ClientCardInfoGateway();
     gateway.Update(entity.ToDataEntity());
 }
 public BE.ClientCardInfo InsertClientCardInfo(BE.ClientCardInfo entity)
 {
     DA.ClientCardInfoGateway gateway = new DA.ClientCardInfoGateway();
     DA.ClientCardInfo result = gateway.Insert(entity.ToDataEntity());
     return result.ToBusinessEntity();
 }