public void UpdateArticle(Article article) { _logger.LogDebug($"Updating article: {article.ArticleRef}"); _context.Entry(article).State = EntityState.Modified; _context.SaveChanges(); }
public void UpdateOrder(Order order) { _logger.LogDebug($"Editing order: {order}"); _context.Entry(order).State = EntityState.Modified; _context.SaveChanges(); }
public void UpdateBasketItem(BasketItem basketItem) { _logger.LogDebug($"Updating basket item: {basketItem}"); _context.Entry(basketItem).State = EntityState.Modified; _context.SaveChanges(); }