public IActionResult DeleteIngredient(int ingredientID)
        {
            if (ingredientID <= 0)
            {
                return(Json(new { errors = "Ingredient Id cannot be <= 0" }));
            }

            if (_dbService.DeleteElement(new Ingredient()
            {
                IngredientID = ingredientID
            }))
            {
                return(Ok());
            }

            return(StatusCode(503, "Error while deleting ingredient"));
        }
        public IActionResult DeleteRecipe(int recipeID)
        {
            if (recipeID <= 0)
            {
                return(Json(new { errors = "Recipe Id cannot be <= 0" }));
            }

            if (_dbService.DeleteElement(new Recipe()
            {
                RecipeID = recipeID
            }))
            {
                return(Ok());
            }

            return(StatusCode(503, "Error while deleting recipe"));
        }