示例#1
0
 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();
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
 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;
 }
示例#5
0
 public void UpdateFacilityPhoto(BE.FacilityPhoto entity)
 {
     DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway();
     gateway.Update(entity.ToDataEntity());
 }
示例#6
0
 public void DeleteFacilityPhoto(BE.FacilityPhoto entity)
 {
     DA.FacilityPhotoGateway gateway = new DA.FacilityPhotoGateway();
     gateway.Delete(entity.FacilityPhotoGuid);
 }