Esempio n. 1
0
        private bool Update()
        {
            OfferPrice offerPrice = new OfferPrice(this.guid);

            DBOfferPrice.AddHistory(
                Guid.NewGuid(),
                offerPrice.Guid,
                offerPrice.OfferGuid,
                offerPrice.CurrencyGuid,
                offerPrice.Price,
                offerPrice.Created,
                offerPrice.CreatedBy,
                offerPrice.CreatedFromIP,
                offerPrice.LastModifed,
                offerPrice.LastModifiedBy,
                offerPrice.ModifiedFromIP,
                DateTime.UtcNow);

            return(DBOfferPrice.Update(
                       this.guid,
                       this.currencyGuid,
                       this.price,
                       this.lastModifed,
                       this.lastModifiedBy,
                       this.modifiedFromIP));
        }
Esempio n. 2
0
        public static bool Delete(Guid guid)
        {
            OfferPrice offerPrice = new OfferPrice(guid);

            DBOfferPrice.AddHistory(
                Guid.NewGuid(),
                offerPrice.Guid,
                offerPrice.OfferGuid,
                offerPrice.CurrencyGuid,
                offerPrice.Price,
                offerPrice.Created,
                offerPrice.CreatedBy,
                offerPrice.CreatedFromIP,
                offerPrice.LastModifed,
                offerPrice.LastModifiedBy,
                offerPrice.ModifiedFromIP,
                DateTime.UtcNow);

            return(DBOfferPrice.Delete(guid));
        }
Esempio n. 3
0
        private bool Update()
        {
            OfferPrice offerPrice = new OfferPrice(this.guid);
            DBOfferPrice.AddHistory(
                Guid.NewGuid(),
                offerPrice.Guid,
                offerPrice.OfferGuid,
                offerPrice.CurrencyGuid,
                offerPrice.Price,
                offerPrice.Created,
                offerPrice.CreatedBy,
                offerPrice.CreatedFromIP,
                offerPrice.LastModifed,
                offerPrice.LastModifiedBy,
                offerPrice.ModifiedFromIP,
                DateTime.UtcNow);

            return DBOfferPrice.Update(
                this.guid,
                this.currencyGuid,
                this.price,
                this.lastModifed,
                this.lastModifiedBy,
                this.modifiedFromIP);
        }
Esempio n. 4
0
        public static bool Delete(Guid guid)
        {
            OfferPrice offerPrice = new OfferPrice(guid);
            DBOfferPrice.AddHistory(
                Guid.NewGuid(),
                offerPrice.Guid,
                offerPrice.OfferGuid,
                offerPrice.CurrencyGuid,
                offerPrice.Price,
                offerPrice.Created,
                offerPrice.CreatedBy,
                offerPrice.CreatedFromIP,
                offerPrice.LastModifed,
                offerPrice.LastModifiedBy,
                offerPrice.ModifiedFromIP,
                DateTime.UtcNow);

            return DBOfferPrice.Delete(guid);
        }