public Customer MapEntityToObject(TWMCUSTOMER entity)
        {
            if (entity != null)
            {
                Customer obj = new Customer();

                obj.WorkRequestId       = entity.CD_WR;
                obj.Address             = new AddressBl().MapEntityToObject(entity.TWMADDRESS);
                obj.Phones              = new Phones();
                obj.Name                = entity.NM_CONTACT;
                obj.CustomerType        = null;
                obj.SSN                 = entity.CD_SSN;
                obj.EffectiveMoveInDate = null;
                obj.DogCode             = null;
                obj.CustomerID          = entity.ID_CUSTOMER;
                obj.PremiseID           = entity.ID_PREMISE;
                obj.PhoneNumber         = entity.TL_CUSTOMER;

                return(obj);
            }

            return(null);
        }
 public Customer GetByEntity(TWMCUSTOMER entity)
 {
     return(MapEntityToObject(entity));
 }