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)); }
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)); }
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); }
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); }