예제 #1
0
 public BE.Offering InsertOffering(BE.Offering entity)
 {
     //@@NEW - removed try/catch. insert returns DA entity (with new data). this method now returns an entity.
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     DA.Offering result = gateway.Insert(entity.ToDataEntity());
     return result.ToBusinessEntity();
 }
예제 #2
0
 public List<BE.Offering> GetOfferingsNotForFacility(Guid facilityGuid)
 {
     List<BE.Offering> result = new List<BE.Offering>();
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     result = gateway.GetAllNotForFacility(facilityGuid).ToBusinessEntitiesList();
     return result;
 }
예제 #3
0
 public BE.Offering GetOfferingByOfferingGuid(Guid offeringGuid)
 {
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     BE.Offering result = new BE.Offering();
     result = gateway.GetByPK(offeringGuid).ToBusinessEntity();
     return result;
 }
예제 #4
0
 public List<BE.Offering> GetAllOfferingWithUndefined()
 {
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     List<BE.Offering> result = new List<BE.Offering>();
     result = gateway.GetAllWithUndefined().ToBusinessEntitiesList();
     return result;
 }
예제 #5
0
 public void UpdateOffering(BE.Offering entity)
 {
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     gateway.Update(entity.ToDataEntity());
 }
예제 #6
0
 public void DeleteOffering(BE.Offering entity)
 {
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     gateway.Delete(entity.OfferingGuid);
 }