Exemplo n.º 1
0
        public int RemoveCuisine(int recipeID, int cuisineId)
        {
            var parameter = new
            {
                Recipes_Id  = recipeID,
                Cuisines_Id = cuisineId
            };

            return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter));
        }
Exemplo n.º 2
0
        public int RemoveCategory(int ingredientId, int categoryId)
        {
            var parameter = new
            {
                Ingredients_Id = ingredientId,
                Categories_Id  = categoryId
            };

            return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter));
        }
Exemplo n.º 3
0
        public int Delete(int id)
        {
            var parameter = new
            {
                Id = id
            };

            //sqlDataAccess.DeleteData("IngredientsCategories_DeleteByCategories", parameter );
            return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter));
        }
Exemplo n.º 4
0
        public int Delete(int id)
        {
            var parameter = new
            {
                Id = id
            };

            //sqlDataAccess.DeleteData("RecipesCuisines_DeleteByCuisines", parameter);
            return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter));
        }