Ejemplo n.º 1
0
        public bool RemoveSpecialOfferProduct(SpecialOfferProduct specialofferproduct)
        {
            SpecialOfferProductData data = new SpecialOfferProductData();
            bool ret = false;

            try
            {
                ret = data.DeleteSpecialOfferProduct(specialofferproduct);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "RemoveSpecialOfferProduct");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
Ejemplo n.º 2
0
        public SpecialOfferProduct GetSpecialOfferProducts(int specialOfferProductID)
        {
            SpecialOfferProductData data = new SpecialOfferProductData();
            SpecialOfferProduct     sop  = new SpecialOfferProduct();

            try
            {
                sop = data.GetSpecialOfferProduct(specialOfferProductID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSpecialOfferProducts");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(sop);
        }
Ejemplo n.º 3
0
        public bool AddSpecialOfferProduct(SpecialOfferProduct specialofferproduct)
        {
            SpecialOfferProductData data = new SpecialOfferProductData();
            bool ret = false;

            if (data == null)
            {
                data = new SpecialOfferProductData();
            }
            try
            {
                ret = data.AddSpecialOfferProduct(specialofferproduct);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddSpecialOfferProduct");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
 public bool Contains(SpecialOfferProduct specialOfferProduct)
 {
     return(this.List.Contains(specialOfferProduct));
 }
 public void Remove(SpecialOfferProduct specialOfferProduct)
 {
     this.List.Remove(specialOfferProduct);
 }
 public void Insert(int index, SpecialOfferProduct specialOfferProduct)
 {
     this.List.Insert(index, specialOfferProduct);
 }
 public int IndexOf(SpecialOfferProduct specialOfferProduct)
 {
     return(this.List.IndexOf(specialOfferProduct));
 }
 public int Add(SpecialOfferProduct specialOfferProduct)
 {
     return(this.List.Add(specialOfferProduct));
 }