Example #1
0
        public int AddSpecialOffer(SpecialOffer specialoffer)
        {
            SpecialOfferData data = new SpecialOfferData();
            int id = 0;

            try
            {
                id = data.AddSpecialOffer(specialoffer);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddSpecialOffer");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(id);
        }
Example #2
0
        public SpecialOffer GetSpecialOffers(int specialOfferID)
        {
            SpecialOfferData data = new SpecialOfferData();
            SpecialOffer     so   = new SpecialOffer();

            try
            {
                so = data.GetSpecialOffer(specialOfferID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSpecialOffers");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(so);
        }
Example #3
0
        public bool UpdateSpecialOffer(SpecialOffer specialoffer)
        {
            SpecialOfferData data = new SpecialOfferData();
            bool             ret  = false;

            try
            {
                ret = data.UpdateSpecialOffer(specialoffer);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "UpdateSpecialOffer");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
 public bool Contains(SpecialOffer specialOffer)
 {
     return(this.List.Contains(specialOffer));
 }
 public void Remove(SpecialOffer specialOffer)
 {
     this.List.Remove(specialOffer);
 }
 public void Insert(int index, SpecialOffer specialOffer)
 {
     this.List.Insert(index, specialOffer);
 }
 public int IndexOf(SpecialOffer specialOffer)
 {
     return(this.List.IndexOf(specialOffer));
 }
 public int Add(SpecialOffer specialOffer)
 {
     return(this.List.Add(specialOffer));
 }