public int RemoveCuisine(int recipeID, int cuisineId) { var parameter = new { Recipes_Id = recipeID, Cuisines_Id = cuisineId }; return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter)); }
public int RemoveCategory(int ingredientId, int categoryId) { var parameter = new { Ingredients_Id = ingredientId, Categories_Id = categoryId }; return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter)); }
public int Delete(int id) { var parameter = new { Id = id }; //sqlDataAccess.DeleteData("IngredientsCategories_DeleteByCategories", parameter ); return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter)); }
public int Delete(int id) { var parameter = new { Id = id }; //sqlDataAccess.DeleteData("RecipesCuisines_DeleteByCuisines", parameter); return(sqlDataAccess.Delete(GetDefaultStoredProcedureName(), parameter)); }