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