Example #1
0
        /// <summary>
        /// Method for removing BuyOffer entity from database
        /// </summary>
        /// <param name="buyOffer">BuyOffer entity to remove</param>
        public void Remove(BuyOffer buyOffer)
        {
            _context.Remove(buyOffer);
            var watch = Stopwatch.StartNew();

            _context.SaveChanges();
            LastOperationTime = (int)watch.ElapsedMilliseconds;
        }
Example #2
0
 public void Edit(BuyOffer buyOffer)
 {
     _context.SaveChanges();
 }