public BE.FacilityPhoto InsertFacilityPhoto(BE.FacilityPhoto entity) { //@@NEW - removed try/catch. insert returns DA entity (with new data). this method now returns an entity. DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway(); DA.FacilityPhoto result = gateway.Insert(entity.ToDataEntity()); return result.ToBusinessEntity(); }
public List<BE.FacilityPhoto> GetFacilityPhotosForFacilityByFacilityGuid(Guid facilityGuid) { DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway(); List<BE.FacilityPhoto> result = new List<BE.FacilityPhoto>(); result = gateway.GetForFacilityByFacilityGuid(facilityGuid).ToBusinessEntitiesList(); return result; }
public BE.FacilityPhoto GetFacilityPhotoByFacilityPhotoGuid(Guid facilityPhotoGuid) { DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway(); BE.FacilityPhoto result = new BE.FacilityPhoto(); result = gateway.GetByPK(facilityPhotoGuid).ToBusinessEntity(); return result; }
public List<BE.FacilityPhoto> GetAllFacilityPhotoWithUndefined() { DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway(); List<BE.FacilityPhoto> result = new List<BE.FacilityPhoto>(); result = gateway.GetAllWithUndefined().ToBusinessEntitiesList(); return result; }
public void UpdateFacilityPhoto(BE.FacilityPhoto entity) { DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway(); gateway.Update(entity.ToDataEntity()); }
public void DeleteFacilityPhoto(BE.FacilityPhoto entity) { DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway(); gateway.Delete(entity.FacilityPhotoGuid); }