Exemple #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();
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #5
0
 public void UpdateOffering(BE.Offering entity)
 {
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     gateway.Update(entity.ToDataEntity());
 }
Exemple #6
0
 public void DeleteOffering(BE.Offering entity)
 {
     DA.OfferingGateway gateway = new DA.OfferingGateway();
     gateway.Delete(entity.OfferingGuid);
 }