public void AcceptOffer(Offer offer, OfferUpdateModel offerUpdate)
        {
            offer.isPending             = false;
            offer.isApproved            = true;
            offer.Product.Sold.IsSold   = true;
            offer.Product.Sold.Offer    = offer;
            offer.Product.Sold.DateSold = DateTime.Now.Date;

            var remainingOffer = AllOfferForProduct(offer.ProductId);

            foreach (var item in remainingOffer)
            {
                item.isApproved = false;
                item.isPending  = false;
            }


            _databaseContext.SaveChanges();
        }
 public void UpdateOffer(Offer offer, OfferUpdateModel offerUpdate)
 {
 }
        public void DeclineOffer(Offer offer, OfferUpdateModel offerUpdate)
        {
            offer.isPending = false;

            _databaseContext.SaveChanges();
        }