Пример #1
0
        public async Task RemoveRecipeTag(int id)
        {
            var recipeTag = new RecipeTag()
            {
                Id = id
            };

            _recipeDb.Attach(recipeTag);
            _recipeDb.Remove(recipeTag);

            await _recipeDb.SaveChangesAsync();
        }