Exemplo n.º 1
0
        public async Task <FoodItem> GetFoodItemAsNoTracked(FoodItem foodItem)
        {
            var realFoodItem = await FoodItems
                               .AsNoTracking()
                               .Where(v => v.FoodItemId == foodItem.FoodItemId)
                               .FirstAsync();

            return(realFoodItem);
        }