Exemplo n.º 1
0
 public BE.Facility GetFacilityByFacilityGuid(Guid facilityGuid)
 {
     DA.FacilityGateway gateway = new DA.FacilityGateway();
     BE.Facility result = new BE.Facility();
     result = gateway.GetByPK(facilityGuid).ToBusinessEntity();
     return result;
 }
Exemplo n.º 2
0
        public static BE.Facility ToBusinessEntity(this DC.Facility dcFacility)
        {
            BE.Facility facilityResult = new BE.Facility()
            {
                FacilityGuid = dcFacility.FacilityGuid,
                FacilityID = dcFacility.FacilityID,
                FacilityName = dcFacility.FacilityName,
                Exerpt = dcFacility.Exerpt,
                Description = dcFacility.Description,
                Address = dcFacility.Address,
                CityStateZipGuid = dcFacility.CityStateZipGuid,
                PhoneNumber = dcFacility.PhoneNumber,
                Email = dcFacility.Email,
                Website = dcFacility.Website,
                ClientGuid = dcFacility.ClientGuid,
                ListingTypeGuid = dcFacility.ListingTypeGuid,
                PublicPhotoFileUri = dcFacility.PublicPhotoFileUri,
            };

            return facilityResult;
        }