public async Task UpdateFoodCounterAsync(FoodCounter updateFood) { var entry = _context.Attach(updateFood); entry.State = EntityState.Modified; await _context.SaveChangesAsync(); }
public async Task UpdateBuyListAsync(BuyList updateBuyList) { var entry = _context.Attach(updateBuyList); entry.State = EntityState.Modified; await _context.SaveChangesAsync(); }