Example #1
0
        public IActionResult GetIngredientsByRecipeID()
        {
            var recipeID    = Convert.ToInt32(Request.Form["recipeID"]);
            var ingredients = _recipesService.GetIngredients(recipeID);

            return(Json(ingredients));
        }